twisted.application.app.convertStyle

Here are the examples of the python api twisted.application.app.convertStyle taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 Source : test_application.py
with MIT License
from autofelix

    def test_convertStyle(self):
        appl = service.Application("lala")
        for instyle in 'source pickle'.split():
            for outstyle in 'source pickle'.split():
                sob.IPersistable(appl).setStyle(instyle)
                sob.IPersistable(appl).save(filename="converttest")
                app.convertStyle("converttest", instyle, None,
                                 "converttest.out", outstyle, 0)
                appl2 = service.loadApplication("converttest.out", outstyle)
                self.assertEqual(service.IService(appl2).name, "lala")


    def test_startApplication(self):