예제 #1
0
 def test_dict_sub_pass_12(self):
     string = "there's a feeling I get when I look to the W"
     result = MatchBlock.dict_sub(string)
     self.assertEqual("there's a feeling I get when I look to the west",
                      result)
예제 #2
0
 def test_dict_sub_pass_10(self):
     string = 'London_nOrD_10'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('London_north_10', result)
예제 #3
0
 def test_dict_sub_pass_11(self):
     string = 'J-W1-NX186'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('J-W1-NX186', result)
예제 #4
0
 def test_dict_sub_pass_9(self):
     string = '0 London N21'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('0 London N21', result)
예제 #5
0
 def test_dict_sub_pass_7(self):
     string = '  London  N  '
     result = MatchBlock.dict_sub(string)
     self.assertEqual('  London  north  ', result)
예제 #6
0
 def test_dict_sub_pass_5(self):
     string = 'Nord London'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('north London', result)
예제 #7
0
 def test_dict_sub_pass_4(self):
     string = 'London SouthWest'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('London south west', result)
예제 #8
0
 def test_dict_sub_pass_1(self):
     string = 'London 1 NE'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('London 1 north east', result)