MCPcopy
hub / github.com/django/django / generate

Method generate

tests/reserved_names/tests.py:9–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class ReservedNameTests(TestCase):
9 def generate(self):
10 day1 = datetime.date(2005, 1, 1)
11 Thing.objects.create(
12 when="a",
13 join="b",
14 like="c",
15 drop="d",
16 alter="e",
17 having="f",
18 where=day1,
19 has_hyphen="h",
20 )
21 day2 = datetime.date(2006, 2, 2)
22 Thing.objects.create(
23 when="h",
24 join="i",
25 like="j",
26 drop="k",
27 alter="l",
28 having="m",
29 where=day2,
30 )
31
32 def test_simple(self):
33 day1 = datetime.date(2005, 1, 1)

Callers 4

test_order_byMethod · 0.95
test_fieldsMethod · 0.95
test_datesMethod · 0.95
test_month_filterMethod · 0.95

Calls 1

createMethod · 0.45

Tested by

no test coverage detected