MCPcopy
hub / github.com/django/django / test_escaped_percent

Method test_escaped_percent

tests/raw_query/tests.py:240–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

238 self.assertEqual(len(qset), 2)
239
240 def test_escaped_percent(self):
241 query = "SELECT * FROM raw_query_author WHERE first_name like 'J%%'"
242 qset = Author.objects.raw(query)
243 self.assertEqual(len(qset), 2)
244
245 @skipUnlessDBFeature("supports_paramstyle_pyformat")
246 def test_pyformat_params(self):

Callers

nothing calls this directly

Calls 1

rawMethod · 0.45

Tested by

no test coverage detected