diff options
Diffstat (limited to 'diplomacy/maps')
-rw-r--r-- | diplomacy/maps/tests/test_map_gen.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/diplomacy/maps/tests/test_map_gen.py b/diplomacy/maps/tests/test_map_gen.py index 84884db..48084fb 100644 --- a/diplomacy/maps/tests/test_map_gen.py +++ b/diplomacy/maps/tests/test_map_gen.py @@ -34,3 +34,12 @@ def test_map_creation(): this_map = Map(map_name) assert this_map.error == [], 'Map %s should have no errors' % map_name del this_map + +def test_map_with_full_path(): + """ Tests for map creation """ + maps = glob.glob(os.path.join(MODULE_PATH, 'maps', '*.map')) + assert maps, 'Expected maps to be found.' + for current_map in maps: + this_map = Map(current_map) + assert this_map.error == [], 'Map %s should have no errors' % current_map + del this_map |