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()
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