Пример #1
0
def test_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_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)