Ejemplo n.º 1
0
 def test_number_from_string_two_number(self):
     assert 456 == number_from_string('abc456xyz123red')
Ejemplo n.º 2
0
 def test_number_from_string_except(self):
     with self.assertRaises(AcademyError):
         number_from_string('abc')
Ejemplo n.º 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