Beispiel #1
0
    def test_is_street(self):
        fantoir_entry = "7700010120ARUE DU CHATEAU D EAU           N  3  0          00000000000000 00000001987001               000911   EAU"
        response = sort_city.is_city(fantoir_entry)

        self.assertEqual(response, False)
Beispiel #2
0
    def test_is_city(self):
        fantoir_entry = "770001    HACHERES-LA-FORET               N  3      000075400000000000000 00000001987001"
        response = sort_city.is_city(fantoir_entry)

        self.assertEqual(response, True)
Beispiel #3
0
    def test_is_direction(self):
        fantoir_entry = "770        SEINE ET MARNE                                  00000000000000 00000000000000"
        response = sort_city.is_city(fantoir_entry)

        self.assertEqual(response, False)