Exemplo n.º 1
0
 def testGetItem(self):
     uri = 'WT://export.Videos.Fluttershy/'
     masterServer().register(PyroServer)
     masterServer().add('/home/konsti/Videos', 'Videos')
     masterClient().register(PyroClient)
     folder = masterClient().get(uri)
     for item in folder.items.keys():
         logger.debug('Found: ' + str(item))
Exemplo n.º 2
0
    def registerComMethodes(self):
        from Comunication.Server import server as masterServer
        from Comunication.Client import client as masterClient
        from Comunication.Pyro import Server as PyroServer
        from Comunication.Pyro import Client as PyroClient

        if self.config['Global']['Comm'] == 'Pyro':
            masterServer().register(PyroServer)
            masterClient().register(PyroClient)
Exemplo n.º 3
0
 def testRegister(self):
     masterServer().register(PyroServer)
Exemplo n.º 4
0
 def testAdd(self):
     masterServer().register(PyroServer)
     masterServer().add('/home/konsti/Videos', 'Videos')
Exemplo n.º 5
0
 def setUp(self):
     unittest.TestCase.setUp(self)
     masterServer().register(PyroServer)
     masterServer().add('/home/konsti/Videos', 'Videos')
     masterServer().add('/home/konsti/tmp', 'tmp')
     masterClient().register(PyroClient)