Ejemplo n.º 1
0
def test_zone_add_blank_description():
    zc = ZoneCollection(current_appliance)
    with error.expected("Description is required"):
        zc.create(
            name=fauxfactory.gen_alphanumeric(5),
            description=''
        )
Ejemplo n.º 2
0
def test_zone_add_blank_name():
    zc = ZoneCollection(current_appliance)
    with error.expected("Name can't be blank"):
        zc.create(
            name='',
            description=fauxfactory.gen_alphanumeric(8)
        )