def test_multi_face_die(self): random.seed(0) # 1, 1, 0, 1, 2, ... die = Die(["1", "2", "3"], "test_theme") self.assertEqual(die.throw()[0], "2") self.assertEqual(die.throw()[0], "2") self.assertEqual(die.throw()[0], "1") self.assertEqual(die.throw()[0], "2") self.assertEqual(die.throw()[0], "3")
def test_single_face_die(self): random.seed(0) # 1, 1, 0, 1, 2, ... die = Die(["1"], "test_theme") self.assertEqual(die.throw()[0], "1")