def test_adding_property_object(self):
     """Method to test the ConfigPropertyObject class"""
     cpo = ConfigPropertyObject("client", {
         "a": 2,
         "b": "asdf"
     }, "This is a thing")
     cpo.add_property_object(
         ConfigPropertyObject("intro", {
             "a": 5,
             "b": "fdsa"
         }, "This is a thing 2"))
     assert cpo.a == 2
     assert cpo.b == "asdf"
     assert cpo.intro.a == 5
     assert cpo.intro.b == "fdsa"
    def test_to_dict_compound(self):
        """Method to test the ConfigPropertyObject class"""
        cpo = ConfigPropertyObject("client", {
            "a": 2,
            "b": "asdf"
        }, "This is a thing")
        cpo.add_property_object(
            ConfigPropertyObject("intro", {
                "a": 5,
                "b": "fdsa"
            }, "This is a thing 2"))
        props = cpo.to_dict()

        assert props["client"]["a"] == 2
        assert props["client"]["b"] == "asdf"
        assert props["client"]["intro"]["a"] == 5
        assert props["client"]["intro"]["b"] == "fdsa"