Ejemplo n.º 1
0
    def test_writeConfigFile(self):
        obj = dict(some=123, thing="456", other=789)

        self.assertEquals(json.loads(talosconfig.writeConfigFile(obj, ("some", "thing"))), dict(some=123, thing="456"))

        # test without keys
        self.assertEquals(json.loads(talosconfig.writeConfigFile(obj, None)), obj)
Ejemplo n.º 2
0
    def test_writeConfigFile(self):
        obj = dict(some=123, thing='456', other=789)

        self.assertEquals(
            json.loads(talosconfig.writeConfigFile(obj, ('some', 'thing'))),
            dict(some=123, thing='456'))

        # test without keys
        self.assertEquals(json.loads(talosconfig.writeConfigFile(obj, None)),
                          obj)
Ejemplo n.º 3
0
    def test_writeConfigFile(self):
        obj = dict(some=123, thing='456', other=789)

        self.assertEquals(
            json.loads(talosconfig.writeConfigFile(obj, ('some', 'thing'))),
            dict(some=123, thing='456')
        )

        # test without keys
        self.assertEquals(
            json.loads(talosconfig.writeConfigFile(obj, None)),
            obj
        )