Ejemplo n.º 1
0
    def test_noop_merge(self):
        """Test merging a config with an empty 'mml' attribute."""
        updates = dict(mml=dict())

        with open(self.source) as f:
            source_data = json.loads(f.read())

        result = process_mml(self.source, updates)

        assert_equal(json.loads(result), source_data)
Ejemplo n.º 2
0
 def test_bad_merge(self):
     """Test merging a config with no 'mml' attribute."""
     with assert_raises(AssertionError):
         process_mml(self.source, dict())