[Buildbot-commits] buildbot/buildbot/test test_web.py,1.11,1.12

Brian Warner warner at users.sourceforge.net
Tue Apr 26 20:25:32 UTC 2005


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

Modified Files:
	test_web.py 
Log Message:
* buildbot/status/html.py (WaterfallStatusResource.body): add the
timezone to the timestamp column.
* buildbot/test/test_web.py (WebTest.test_waterfall): test it


Index: test_web.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_web.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- test_web.py	26 Apr 2005 09:43:16 -0000	1.11
+++ test_web.py	26 Apr 2005 20:25:30 -0000	1.12
@@ -1,6 +1,6 @@
 # -*- test-case-name: buildbot.test.test_web -*-
 
-import sys, os, os.path
+import sys, os, os.path, time
 from twisted.python import log, components, util
 #log.startLogging(sys.stderr)
 
@@ -155,8 +155,7 @@
 
         d = client.getPage("http://localhost:%d/remote/" % p.portnum)
         page = dr(d, 10)
-        #print page
-        self.failUnless(page)
+        self.failUnlessIn("BuildBot", page)
         dr(p.shutdown())
         dr(m.stopService())
 
@@ -185,6 +184,8 @@
         self.failUnless(page)
         self.failUnlessIn("current activity", page)
         self.failUnlessIn("<html>", page)
+        TZ = time.tzname[time.daylight]
+        self.failUnlessIn("time (%s)" % TZ, page)
 
         d = client.getPage("http://localhost:%d/favicon.ico" % port)
         icon = dr(d)





More information about the Commits mailing list