def test_register_datatxt(): cache = os.path.join(tempfile.gettempdir(), str(random.randint(1, 100000))) pins.board_register('datatxt', name = board, url = url, cache = cache ) assert board in pins.board_list()
def test_callbacks(): assert_array_equals(pins.board_list(), ["local", "packages", "memory"])
def test_deregister_datatxt(): pins.board_deregister(board) assert board not in pins.board_list()
def test_register_board(self): initialize_board(self.board, False) assert self.board in pins.board_list()
def test_board_list_default(): assert_array_equals(pins.board_list(), ["local", "packages"])
def test_register_board_version(self): initialize_board(self.board, True) assert self.board in pins.board_list()
def test_board_register_temp(): board = pins.board_register("local", name="temp", cache="temp-path") assert board == "temp" assert_array_equals(pins.board_list(), ["local", "temp"])
def test_board_list_default(): assert_array_equals(pins.board_list(), ["local", "memory"])
def test_board_register_temp(): board = pins.board_register("local", name="temp", cache="temp") assert board == "temp" assert board in pins.board_list()
def test_board_is_registered(board): if (board == "s3"): return # NYI assert board in pins.board_list()