Ejemplo n.º 1
0
 def test_mapLoaded_GetDim_Loaded(self):
     path = self._RealPath
     holder = MapHolder(self._ConfigProvider)
     holder.loadMap(path)
     dim = holder.getMapDim()
     self.assertTrue(dim.width == 10, "error")
     self.assertTrue(dim.height == 10, "error")
Ejemplo n.º 2
0
 def test_mapLoaded_GetDim_Not_Loaded(self):
     path = self._NotRealPath
     holder = MapHolder(self._ConfigProvider)
     holder.loadMap(path)
     self.assertTrue(holder.getMapDim().width == 0, "error")
     self.assertTrue(holder.getMapDim().height == 0, "error")