Esempio n. 1
0
 def testTransferManagerSource(self):
     """
     Test iface converter using a spec directly from the TransferManager
     """
     tm = TransferManager()
     tm.addSource(None, "localhost", "localhost", 1)
     
     factory = EndpointFactory(0,
                               False,False,False,False, '', [],
                               False,False,False,False, '', [])
     ifs = factory.createIfaceList(tm.sources[0])
     self.assertEqual(1, len(ifs))
     self.assertEqual(('localhost', TEST_PORT, 1, ), ifs[0])