Пример #1
0
 def test(self):
     test_dir = "src/integrationtest/resources/recursive_dicts/"
     data = yaml_merger.merge_yaml_files(test_dir)
     print json.dumps(data, sort_keys=True, indent=4)
     self.assertEquals(
         data, {
             'foo': {
                 'a': 'BBBB',
                 'c': {
                     'd': [1, 2, 3, 99, 100],
                     'e': 'f',
                     'x': 'YYYY'
                 }
             }
         })
 def test(self):
     test_dir = "src/integrationtest/resources/two_overlapping_dicts/"
     data = yaml_merger.merge_yaml_files(test_dir)
     print json.dumps(data, sort_keys=True, indent=4)
     self.assertEquals(data, {"a": "bar"})
 def test(self):
     test_dir = "src/integrationtest/resources/recursive_dicts/"
     data = yaml_merger.merge_yaml_files(test_dir)
     print json.dumps(data, sort_keys=True, indent=4)
     self.assertEquals(data, {'foo': {'a': 'BBBB', 'c': {'d': [1, 2, 3, 99, 100], 'e': 'f', 'x': 'YYYY'}}})
 def test(self):
     test_dir = "src/integrationtest/resources/two_nonoverlapping_dicts/"
     data = yaml_merger.merge_yaml_files(test_dir)
     print json.dumps(data, sort_keys=True, indent=4)
     self.assertEquals(data, {"a": "foo", "b": "bar"})