예제 #1
0
 def test_extract_str_number_pass_4(self):
     original_string = 'France 4/1a'
     string = 'France'
     num = '4 1a'
     result = MatchBlock.extract_str_number(original_string)
     self.assertEqual((string, num), result)
예제 #2
0
 def test_extract_str_number_pass_5(self):
     original_string = '34.2'
     string = ''
     num = '34 2'
     result = MatchBlock.extract_str_number(original_string)
     self.assertEqual((string, num), result)
예제 #3
0
 def test_extract_str_number_pass_3(self):
     original_string = '3 France 4 Nord 5a'
     string = 'France Nord'
     num = '3 4 5a'
     result = MatchBlock.extract_str_number(original_string)
     self.assertEqual((string, num), result)