Example #1
0
 def test_accrate_numbers(self): 
     self.assertEqual( number_sum(['1','2','3']), 6) 
Example #2
0
 def test_non_3_number(self):         
     self.assertEqual( number_sum(['1','2']), "Exactly 3 numbers are required") 
Example #3
0
 def test_teen_15_16_numbers(self): 
     self.assertEqual( number_sum(['1','2','15']), 18) 
Example #4
0
 def test_non_numeric(self):         
     self.assertEqual( number_sum(['1','2','3a']), "All inputs must be numeric")