def test120_close_board(self):
        boards = self._trello.list_boards(board_filter="open")
        open_count = len(boards)
        test_create_board = next( x for x in boards if x.name == "test_create_board".encode('utf-8')) # type: Board
        copied_board = next( x for x in boards if x.name == "copied_board".encode('utf-8')) # type: Board
        test_create_board.close()
        copied_board.close()
        still_open_boards = self._trello.list_boards(board_filter="open")
        still_open_count = len(still_open_boards)
        self.assertEqual(still_open_count, open_count - 2)
dataset/ETHPy150Open sarumont/py-trello/test/test_board.py/TrelloBoardTestCase.test120_close_board/original