def test_same_class_name_different_namespace(make_namespace): other_namespace = ta.make_namespace() name = fauxfactory.gen_alphanumeric(8) cls1 = Class(name=name, namespace=make_namespace) cls2 = Class(name=name, namespace=other_namespace) cls1.create() cls2.create() # delete one and check the other still exists cls1.delete() assert cls2.exists()
def test_same_class_name_different_namespace(make_namespace): other_namespace = ta.make_namespace() name = generate_random_string(8) cls1 = Class(name=name, namespace=make_namespace) cls2 = Class(name=name, namespace=other_namespace) cls1.create() cls2.create() # delete one and check the other still exists cls1.delete() assert cls2.exists()
def make_namespace(request): return ta.make_namespace(request=request)