Beispiel #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)
Beispiel #2
0
 def test_dict_sub_pass_10(self):
     string = 'London_nOrD_10'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('London_north_10', result)
Beispiel #3
0
 def test_dict_sub_pass_11(self):
     string = 'J-W1-NX186'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('J-W1-NX186', result)
Beispiel #4
0
 def test_dict_sub_pass_9(self):
     string = '0 London N21'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('0 London N21', result)
Beispiel #5
0
 def test_dict_sub_pass_7(self):
     string = '  London  N  '
     result = MatchBlock.dict_sub(string)
     self.assertEqual('  London  north  ', result)
Beispiel #6
0
 def test_dict_sub_pass_5(self):
     string = 'Nord London'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('north London', result)
Beispiel #7
0
 def test_dict_sub_pass_4(self):
     string = 'London SouthWest'
     result = MatchBlock.dict_sub(string)
     self.assertEqual('London south west', result)
Beispiel #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)