def test_when_calc_pay_passed_invalid_time_range_it_returns_0(self): self.assertEqual(calc.calc_pay('4:00PM', '5:00PM', 'A'), 0)
def test_when_calc_pay_passed_same_start_end_it_returns_0(self): self.assertEqual(calc.calc_pay('5:00PM', '5:00PM', 'A'), 0)
def test_when_calc_pay_passed_6_to_12_fam_c_it_returns_108(self): self.assertEqual(calc.calc_pay('6:00PM', '12:00AM', 'C'), 108)
def test_when_calc_pay_passed_invalid_time_it_returns_none(self): self.assertIsNone(calc.calc_pay('5:00', '5:00PM', 'A'))
def test_when_calc_pay_passed_9_to_4_fam_c_it_returns_105(self): self.assertEqual(calc.calc_pay('9:00PM', '4:00AM', 'c'), 105)
def test_when_calc_pay_passed_8_to_9_fam_c_it_returns_21(self): self.assertEqual(calc.calc_pay('8:00PM', '9:00PM', 'c'), 21)
def test_when_calc_pay_passed_8_to_3_fam_a_it_returns_88(self): self.assertEqual(calc.calc_pay('8:00PM', '3:00AM', 'b'), 88)
def test_when_calc_pay_passed_4_to_4_fam_c_it_returns_0(self): self.assertEqual(calc.calc_pay('5:00PM', '5:00PM', 'c'), 0)
def test_when_calc_pay_passed_4_to_4_fam_a_it_returns_0(self): self.assertEqual(calc.calc_pay('4:00AM', '4:00AM', 'a'), 0)
def test_when_calc_pay_passed_8_to_1_fam_b_it_returns_56(self): self.assertEqual(calc.calc_pay('8:00PM', '1:00AM', 'b'), 56)
def test_when_calc_pay_passed_5_to_4_fam_a_it_returns_190(self): self.assertEqual(calc.calc_pay('5:00PM', '4:00AM', 'A'), 190)
def test_when_calc_pay_passed_10_to_1_fam_a_it_returns_35(self): self.assertEqual(calc.calc_pay('10:00PM', '1:00AM', 'A'), 55)
def test_when_calc_pay_passed_11_to_11_fam_a_it_returns_0(self): self.assertEqual(calc.calc_pay('11:00PM', '11:00PM', 'A'), 0)
def test_when_calc_pay_passed_5_to_6_fam_a_it_returns_15(self): self.assertEqual(calc.calc_pay('5:00PM', '6:00PM', 'A'), 15)
def test_when_calc_pay_passed_invalid_family_it_returns_none(self): self.assertIsNone(calc.calc_pay('4:00PM', '5:00PM', 'D'))