def test_b(self): self.assertEqual(aa.get_switch_value({85,85,85}), 'B')
def test_non_key(self): self.assertEqual(aa.get_switch_value({101, -5, 155}), 'Not a viable score!')
def test_a(self): self.assertEqual(aa.get_switch_value({95,95,95}), 'A')
def test_d(self): self.assertEqual(aa.get_switch_value({65,65,65}), 'D')
def test_f(self): self.assertEqual(aa.get_switch_value({55,55,55}), 'F')
def test_case_not_exists(self): with self.assertRaises(ValueError): aa.get_switch_value('E')
def test_c(self): self.assertEqual(aa.get_switch_value({75,75,75}), 'C')
def test_case_F(self): self.assertEqual(aa.get_switch_value('F'), 50) self.assertEqual(aa.get_switch_value('f'), 50)
def test_case_D(self): self.assertEqual(aa.get_switch_value('D'), 60) self.assertEqual(aa.get_switch_value('d'), 60)
def test_case_C(self): self.assertEqual(aa.get_switch_value('C'), 70) self.assertEqual(aa.get_switch_value('c'), 70)
def test_case_B(self): self.assertEqual(aa.get_switch_value('B'), 80) self.assertEqual(aa.get_switch_value('b'), 80)
def test_case_A(self): self.assertEqual(aa.get_switch_value('A'), 90) self.assertEqual(aa.get_switch_value('a'), 90)