def test_is_equal_false_different_holes(self): board1 = FishBoard(num_rows=4, num_cols=3) board2 = FishBoard(num_rows=4, num_cols=3) board1 = board1.create_hole(row=1, col=0) board2 = board2.create_hole(row=1, col=1) self.assertFalse(board1.is_equal(board2))
def test_is_equal_false_different_num_fish(self): board1 = FishBoard(num_rows=4, num_cols=3) board2 = FishBoard(num_rows=4, num_cols=3) board1 = board1.add_fish(row=0, col=0) board2 = board2.add_fish(row=1, col=0) self.assertFalse(board1.is_equal(board2))
def test_is_equal(self): board1 = FishBoard(num_rows=4, num_cols=3) board2 = FishBoard(num_rows=4, num_cols=3) board1 = board1.add_fish(row=0, col=0) board2 = board2.add_fish(row=0, col=0) board1 = board1.create_hole(row=1, col=0) board2 = board2.create_hole(row=1, col=0) self.assertTrue(board1.is_equal(board2))
def test_is_equal_false_different_size(self): board1 = FishBoard(num_rows=4, num_cols=3) board2 = FishBoard(num_rows=5, num_cols=3) self.assertFalse(board1.is_equal(board2))