MCPcopy
hub / github.com/django/django / test_init

Method test_init

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

Source from the content-addressed store, hash-verified

17 self.assertEqual(actual, "81fe8bfe87576c3ecb22426f8e57847382917acf")
18
19 def test_init(self):
20 shuffler = Shuffler(100)
21 self.assertEqual(shuffler.seed, 100)
22 self.assertEqual(shuffler.seed_source, "given")
23
24 def test_init_none_seed(self):
25 with mock.patch("random.randint", return_value=200):

Callers

nothing calls this directly

Calls 1

ShufflerClass · 0.90

Tested by

no test coverage detected