[Buildbot-commits] buildbot/buildbot/test test_status.py,1.14,1.15

Brian Warner warner at users.sourceforge.net
Tue Apr 26 09:08:32 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22070/buildbot/test

Modified Files:
	test_status.py 
Log Message:
* buildbot/status/client.py (makeRemote): new approach to making
IRemote(None) be None, which works under Twisted-2.0
* buildbot/test/test_status.py (Client.testAdaptation): test it


Index: test_status.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_status.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- test_status.py	24 Apr 2005 21:30:25 -0000	1.14
+++ test_status.py	26 Apr 2005 09:08:29 -0000	1.15
@@ -372,3 +372,11 @@
                                               interfaces.IStatusLogStub))
         self.failUnlessEqual(stub.getName(), l.getName())
         self.failUnlessEqual(stub.getStep(), l.getStep())
+
+class Client(unittest.TestCase):
+    def testAdaptation(self):
+        b = builder.BuilderStatus("bname")
+        b2 = client.makeRemote(b)
+        self.failUnless(isinstance(b2, client.RemoteBuilder))
+        b3 = client.makeRemote(None)
+        self.failUnless(b3 is None)





More information about the Commits mailing list