Exemple #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))
Exemple #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)
Exemple #3
0
 def testRegister(self):
     masterServer().register(PyroServer)
Exemple #4
0
 def testAdd(self):
     masterServer().register(PyroServer)
     masterServer().add('/home/konsti/Videos', 'Videos')
Exemple #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)