Example #1
0
    def test_serialization(self):
        f = State('/usr/local/bin/pydmesg', 'file', 'managed',
                  require=File('/usr/local/bin'),
                  registry=test_registry,
                  **pydmesg_kwargs)

        self.assertEqual(f(), pydmesg_expected)
    def test_serialization(self):
        f = State("/usr/local/bin/pydmesg",
                  "file",
                  "managed",
                  require=self.File("/usr/local/bin"),
                  **self.pydmesg_kwargs)

        self.assertEqual(f(), self.pydmesg_expected)