Exemple #1
0
 def test_roll_die_0_rolls(self):
     self.assertEqual(Lab_05.roll_die(0, 5), 0)
Exemple #2
0
 def test_roll_3_rolls_of_6(self, mock_roll):
     self.assertEqual(Lab_05.roll_die(3, 6), 11)
Exemple #3
0
 def test_roll_1_rolls_of_6(self, mock_roll):
     self.assertEqual(Lab_05.roll_die(1, 6), 3)
Exemple #4
0
 def test_roll_2_rolls_of_6(self, mock_roll):
     self.assertEqual(Lab_05.roll_die(2, 6), 8)
Exemple #5
0
 def test_roll_die_0_sided_die(self):
     self.assertEqual(Lab_05.roll_die(5, 0), 0)