Example #1
0
 def test_number_from_string_two_number(self):
     assert 456 == number_from_string('abc456xyz123red')
Example #2
0
 def test_number_from_string_except(self):
     with self.assertRaises(AcademyError):
         number_from_string('abc')
Example #3
0
 def test_number_from_string(self):
     result = number_from_string('abc123')
     assert 123 == result
 def test_number_from_string_two_number(self):
     assert 456 == number_from_string('abc456xyz123red')
 def test_number_from_string_except(self):
     with self.assertRaises(AcademyError):
         number_from_string('abc')
 def test_number_from_string(self):
     result = number_from_string('abc123')
     assert 123 == result