示例#1
0
def test_circulation_item_not_exist(testdata):
    """Test return False if item does not exist."""
    item_pid = dict(type=ITEM_PID_TYPE, value="not-existing-item-pid")
    assert not item_exists(item_pid)
示例#2
0
def test_circulation_item_not_exist(testdata):
    """Test return False if item does not exist."""
    assert not item_exists("not-existing-item-pid")
示例#3
0
def test_item_exists(testdata):
    """Test return True if item exists."""
    first_item_pid = testdata["items"][0]["pid"]
    item_pid = dict(type=ITEM_PID_TYPE, value=first_item_pid)
    assert item_exists(item_pid)
示例#4
0
def test_item_exists(testdata):
    """Test return True if item exists."""
    first_item_pid = testdata["items"][0]["pid"]
    assert item_exists(first_item_pid)