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