def test_string1(self): count = 'e' self.assertEqual(small_pizza('e')) # expected failure, can't multiply sequence by non int of type float with self.assertRaises(TypeError): small_pizza('e') # fail
def test_count4(self): count = 51 self.assertEqual(small_pizza(51), (458.49, 46.31, 504.80)) # Pass
def test_count2(self): count = -3 # this will print default error message # This will return calculations, though run with print_summary # function this will fail as count < 0 self.assertEqual(small_pizza(-3), (0, 0, 0)) # Expected Fail
def test_count3(self): count = 11 self.assertEqual(small_pizza(11), (98.89, 9.99, 108.88)) # Pass
def test_count1(self): count = 1 self.assertEqual(small_pizza(1),(8.99, .91, 9.9)) # Pass