def test_extra_input(self):
     with self.assertRaises(ValueError) as context:
         read_input.classify_input("102 103 104")
     self.assertTrue('wrong input' in str(context.exception))
 def test_wrong_chargeRate(self):
     with self.assertRaises(ValueError) as context:
         read_input.classify_input("102 CR")
     self.assertTrue('wrong input' in str(context.exception))
 def test_single_input(self):
     with self.assertRaises(ValueError) as context:
         read_input.classify_input("133.33")
     self.assertTrue('wrong input' in str(context.exception))
 def test_wrong_temp(self):
     with self.assertRaises(ValueError) as context:
         read_input.classify_input("ab 18")
     self.assertTrue('wrong input' in str(context.exception))