示例#1
0
def pointer_item():
    return PointerItem.generate(standard_context())
def test_uuid_item_happy_case(sample_context):
    test_item = PointerItem.generate(sample_context)
    assert sample_context.items() <= test_item.context.items()
示例#3
0
def random_pointer_item():
    return PointerItem.generate(random_context(random.randint(0, 10)))
def test_object_type_neq(sample_context):
    pointer = PointerItem.generate(sample_context)
    context = ContextItem("stuff", pointer.partition_key)
    assert pointer != context