def test_fail_bishop_move(self): bishop = Bishop('white') self.assertFalse(bishop.can_move('f1', 'f2')) self.assertFalse(bishop.can_move('a1', 'a3'))
def test_bishop_move(self): bishop = Bishop('white') self.assertTrue(bishop.can_move('f1', 'g2')) self.assertTrue(bishop.can_move('f1', 'a6'))