|
@@ -0,0 +1,10 @@
|
|
1
|
+from synergine2.config import Config
|
|
2
|
+from synergine2_cocos2d.middleware import MapMiddleware
|
|
3
|
+
|
|
4
|
+class TestMapMiddleware:
|
|
5
|
+ def test_get_map_file_path(self):
|
|
6
|
+ test = MapMiddleware(Config(), 'map/003')
|
|
7
|
+ assert test.get_map_file_path() == 'map/003/003.tmx'
|
|
8
|
+ test = MapMiddleware(Config(), 'map/003/')
|
|
9
|
+ assert test.get_map_file_path() == 'map/003/003.tmx'
|
|
10
|
+
|