Exemplo n.º 1
0
 def test_failure_with_non_dict_data(self, data):
     with pytest.raises(ParseError):
         ServiceTemplate.normalize(Node(data))
Exemplo n.º 2
0
 def test_noop_for_dicts_with_no_dsl_definitions(self):
     assert ServiceTemplate.normalize(Node({})).bare == {}
Exemplo n.º 3
0
 def test_dsl_definitions_removal(self):
     assert ServiceTemplate.normalize(
         Node({Node("dsl_definitions"): "data"})).bare == {}