Esempio n. 1
0
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()
Esempio n. 2
0
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()
Esempio n. 3
0
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()
Esempio n. 4
0
def make_namespace(request):
    return ta.make_namespace(request=request)
Esempio n. 5
0
def make_namespace(request):
    return ta.make_namespace(request=request)