예제 #1
0
def test_key_exists_invalid_2():
    arm = ArmFile('tests/test_template.json')
    assert arm.key_exists('parameters.bad') == False
예제 #2
0
def test_key_exists_invalid_1():
    arm = ArmFile('tests/test_template.json')
    assert arm.key_exists('bad') == False
예제 #3
0
def test_key_exists_valid_1():
    arm = ArmFile('tests/test_template.json')
    assert arm.key_exists('parameters') == True
예제 #4
0
def test_key_exists_valid_3():
    arm = ArmFile('tests/test_template.json')
    assert arm.key_exists('parameters.storageAccountType.defaultValue') == True
예제 #5
0
def test_key_exists_null():
    arm = ArmFile('tests/test_template.json')
    assert arm.key_exists('') == False