示例#1
0
    def test_values_with_parent(self):
        parent = Config({"test": True})
        settings = Config(YAML_DATA, parent=parent, node=mock.Mock())

        self.assertCountEqual(list(settings.values()),
                              ["bob", ["one", "two", "three"], True])
        self.assertCountEqual(list(parent.values()), [True])
示例#2
0
    def test_values(self):
        settings = Config(YAML_DATA)

        self.assertCountEqual(list(settings.values()),
                              ["bob", ["one", "two", "three"]])