MCPcopy
hub / github.com/django/django / test_from_parameter

Method test_from_parameter

tests/postgres_tests/test_search.py:175–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173
174class SearchConfigTests(PostgreSQLSimpleTestCase):
175 def test_from_parameter(self):
176 self.assertIsNone(SearchConfig.from_parameter(None))
177 self.assertEqual(SearchConfig.from_parameter("foo"), SearchConfig("foo"))
178 self.assertEqual(
179 SearchConfig.from_parameter(SearchConfig("bar")), SearchConfig("bar")
180 )
181
182
183class MultipleFieldsTest(GrailTestData, PostgreSQLTestCase):

Callers

nothing calls this directly

Calls 2

SearchConfigClass · 0.90
from_parameterMethod · 0.80

Tested by

no test coverage detected