Example #1
0
    def test_loader_from_file(self):
        loader = MapLoader()
        self.assertIsNotNone(loader)

        map = loader.load_file_contents(os.path.dirname(__file__)+ "/test_files/maps/test_map.txt")

        self.assertIsNotNone(map)
        self.assertEqual(len(map.keys()), 12)
        self.assertEqual(map['ALABAMA'], 'Montgomery')
        self.assertEqual(map['COLORADO'], 'Denver')
        self.assertEqual(map['HAWAII'], 'Honolulu')
Example #2
0
    def test_loader_from_file(self):
        loader = MapLoader()
        self.assertIsNotNone(loader)

        map = loader.load_file_contents(os.path.dirname(__file__)+ "/test_files/maps/test_map.txt")

        self.assertIsNotNone(map)
        self.assertEqual(len(map.keys()), 12)
        self.assertEqual(map['ALABAMA'], 'MONTGOMERY')
        self.assertEqual(map['COLORADO'], 'DENVER')
        self.assertEqual(map['HAWAII'], 'HONOLULU')
Example #3
0
    def test_loader_from_file(self):
        loader = MapLoader()
        self.assertIsNotNone(loader)

        map = loader.load_file_contents(
            os.path.dirname(__file__) + "/test_files/maps/test_map.txt")

        self.assertIsNotNone(map)
        self.assertEqual(len(map.keys()), 12)
        self.assertEqual(map['ALABAMA'], 'MONTGOMERY')
        self.assertEqual(map['COLORADO'], 'DENVER')
        self.assertEqual(map['HAWAII'], 'HONOLULU')
Example #4
0
    def test_loader_from_file(self):
        loader = MapLoader()
        self.assertIsNotNone(loader)

        map = loader.load_file_contents(
            "/Users/keithsterling/Documents/Development/Python/Projects/AIML/program-y/src/test/mappings/test_files/maps/test_map.txt"
        )

        self.assertIsNotNone(map)
        self.assertEqual(len(map.keys()), 12)
        self.assertEqual(map['ALABAMA'], 'MONTGOMERY')
        self.assertEqual(map['COLORADO'], 'DENVER')
        self.assertEqual(map['HAWAII'], 'HONOLULU')