def test_get_cards(self):
        # Let's ensure we have no cards in board
        for card in self._board.get_cards():
            card.delete()

        nb_cards = 3
        names = ["Card #" + str(i) for i in range(nb_cards)]
        for i in range(nb_cards):
            self._add_card(names[i])
        cards = self._board.get_cards()
        self.assertEquals(len(cards), nb_cards)
        self.assertEquals(len(cards), len(self._board.open_cards()))

        for card in cards:
            self.assertTrue(names in card.name.decode('utf-8'), 'Unexpected card found')

        self.assertIsInstance(self._board.all_cards(), list)
        self.assertIsInstance(self._board.open_cards(), list)
        self.assertIsInstance(self._board.closed_cards(), list)
dataset/ETHPy150Open sarumont/py-trello/test/test_board.py/TrelloBoardTestCase.test_get_cards/swapped operands of `in`