def test_cell_state_filled_unfilled(self): cell = Cell() cell.state = True self.assertTrue(cell) self.assertEquals(str(cell), 'x') cell.state = False self.assertFalse(cell.state) self.assertEquals(str(cell), ' ')
def test_set_cell_state_filled(self): cell = Cell() cell.state = True self.assertTrue(cell.state) self.assertEquals(str(cell), 'x')