Beispiel #1
0
 def testInterface1(self):
     self.setupBrokers()
     rr, target = self.setupTarget(Target())
     iface = getRemoteInterface(target)
     self.failUnlessEqual(iface, RIMyTarget)
     iname = getRemoteInterfaceName(target)
     self.failUnlessEqual(iname, "RIMyTarget")
     self.failUnlessIdentical(RemoteInterfaceRegistry["RIMyTarget"],
                              RIMyTarget)
     rr, target = self.setupTarget(Target2())
     iname = getRemoteInterfaceName(target)
     self.failUnlessEqual(iname, "RIMyTargetInterface2")
     self.failUnlessIdentical(\
         RemoteInterfaceRegistry["RIMyTargetInterface2"], RIMyTarget2)
Beispiel #2
0
 def testInterface1(self):
     # verify that we extract the right interfaces from a local object.
     # also check that the registry stuff works.
     self.setupBrokers()
     rr, target = self.setupTarget(Target())
     iface = getRemoteInterface(target)
     self.failUnlessEqual(iface, RIMyTarget)
     iname = getRemoteInterfaceName(target)
     self.failUnlessEqual(iname, "RIMyTarget")
     self.failUnlessIdentical(RemoteInterfaceRegistry["RIMyTarget"],
                              RIMyTarget)
     
     rr, target = self.setupTarget(Target2())
     iname = getRemoteInterfaceName(target)
     self.failUnlessEqual(iname, "RIMyTargetInterface2")
     self.failUnlessIdentical(\
         RemoteInterfaceRegistry["RIMyTargetInterface2"], RIMyTarget2)
Beispiel #3
0
    def testInterface1(self):
        # verify that we extract the right interfaces from a local object.
        # also check that the registry stuff works.
        self.setupBrokers()
        rr, target = self.setupTarget(Target())
        iface = getRemoteInterface(target)
        self.failUnlessEqual(iface, RIMyTarget)
        iname = getRemoteInterfaceName(target)
        self.failUnlessEqual(iname, "RIMyTarget")
        self.failUnlessIdentical(RemoteInterfaceRegistry["RIMyTarget"],
                                 RIMyTarget)

        rr, target = self.setupTarget(Target2())
        iname = getRemoteInterfaceName(target)
        self.failUnlessEqual(iname, "RIMyTargetInterface2")
        self.failUnlessIdentical(\
            RemoteInterfaceRegistry["RIMyTargetInterface2"], RIMyTarget2)