コード例 #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()
コード例 #2
0
ファイル: test_class.py プロジェクト: FilipB/cfme_tests
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()
コード例 #3
0
ファイル: test_class.py プロジェクト: slouderm/cfme_tests
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()
コード例 #4
0
def make_namespace(request):
    return ta.make_namespace(request=request)
コード例 #5
0
ファイル: test_class.py プロジェクト: FilipB/cfme_tests
def make_namespace(request):
    return ta.make_namespace(request=request)