MCPcopy
hub / github.com/django/django / test_init_none_seed

Method test_init_none_seed

tests/test_runner/test_shuffler.py:24–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.assertEqual(shuffler.seed_source, "given")
23
24 def test_init_none_seed(self):
25 with mock.patch("random.randint", return_value=200):
26 shuffler = Shuffler(None)
27 self.assertEqual(shuffler.seed, 200)
28 self.assertEqual(shuffler.seed_source, "generated")
29
30 def test_init_no_seed_argument(self):
31 with mock.patch("random.randint", return_value=300):

Callers

nothing calls this directly

Calls 2

ShufflerClass · 0.90
patchMethod · 0.45

Tested by

no test coverage detected