Beispiel #1
0
class MapTestSuite(unittest.TestCase):
    
    def setUp(self):
        self.map = Map(id=0)
        self.block = Block(BlockType.GRASS, Position(10, 20))
    
    def test_dump_map(self):
#        print self.map
        dump = self.map.json_encode()
        print dump
        assert json.loads(dump)
        
    def test_dump_block(self):
        print self.block.json_encode()
Beispiel #2
0
 def setUp(self):
     self.map = Map(id=0)
     self.block = Block(BlockType.GRASS, Position(10, 20))