def test_clicked_2(self): """Check if tile is a mine, that the image is changed to mine""" test_tile = Tile(10, 10) test_tile.is_mine = True img = tile.MINE test_tile.clicked(1) self.assertEqual(test_tile.img, img)
def test_clicked_3(self): """Check if mine_count is set correctly""" test_tile = Tile(10, 10) test_tile.clicked(1) self.assertEqual(test_tile.mine_count, 1)
def test_clicked(self): """Check if tile.is_clicked is set""" test_tile = Tile(10, 10) test_tile.clicked(1) self.assertEqual(test_tile.is_clicked, True)