test_middleware.py 381B

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