def test_validate_ordered_dict(): c = YamlConfig() config = OrderedDict([ ('web', OrderedDict([('image', 'orchardup/nginx'), ('volumes', OrderedDict([('public', '/var/www')]))])) ]) assert c.validate(config)
def test_validate_invalid(config): c = YamlConfig() with pytest.raises(ValueError): assert c.validate(config)
def test_validate_ordered_dict(): c = YamlConfig() config = OrderedDict([('web', OrderedDict([('image', 'orchardup/nginx'), ('volumes', OrderedDict([('public', '/var/www')]))]))]) assert c.validate(config)
def test_validate_valid(config): c = YamlConfig() assert c.validate(config)