예제 #1
0
    def test_config_object_should_not_allow_for_new_attr(self):
        config = config_object(self.data)

        with self.assertRaises(AttributeError):
            config.aa = ""
예제 #2
0
    def test_config_object_making_process(self):
        config = config_object(self.data)

        self.assertEqual(config.a, self.data["a"])
        self.assertEqual(config.b, self.data["b"])
        self.assertEqual(config.c, self.data["c"])