def test_get_cell(self): m = Map() m.add_cell(0, 1) m.add_cell(1, 1) self.assertIsNotNone(m.get_cell(0, 1)) self.assertIsNone(m.get_cell(0, 0)) self.assertIsNotNone(m.get_cell(1, 1)) self.assertIsNone(m.get_cell(1, 0))
def test_add_cell(self): m = Map() m.add_cell(0, 0) self.assertIsNotNone(m.cells[0]) pass