[Buildbot-commits] buildbot/buildbot/test test_mailparse.py,1.2,1.3

Brian Warner warner at users.sourceforge.net
Fri May 6 04:42:43 UTC 2005


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

Modified Files:
	test_mailparse.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-137
Creator:  Brian Warner <warner at monolith.lothar.com>

Merged from org.apestaart at thomas--buildbot (patch 0-2), warner at monolith.lothar.com--2005 (patch 0-3)

Merged in Change(tag=) enhancement from Thomas Vander Stichele.

Patches applied:

 * org.apestaart at thomas--buildbot/buildbot--cvstag--0-dev--base-0
   tag of org.apestaart at thomas--buildbot/buildbot--cvstag--0-rel--patch-2

 * org.apestaart at thomas--buildbot/buildbot--cvstag--0-dev--patch-1
   tag of org.apestaart at thomas--buildbot/buildbot--cvstag--0-rel--patch-2

 * org.apestaart at thomas--buildbot/buildbot--cvstag--0-rel--base-0
   tag of org.apestaart at thomas--buildbot/buildbot--releases--0--patch-2

 * org.apestaart at thomas--buildbot/buildbot--cvstag--0-rel--patch-1
   merge in first patch on the old cvsbranch branch

 * org.apestaart at thomas--buildbot/buildbot--cvstag--0-rel--patch-2
   merge in complete cvsbranch to this new branch

 * org.apestaart at thomas--buildbot/buildbot--releases--0--base-0
   tag of arch at buildbot.sf.net--2004/buildbot--dev--0--patch-21

 * org.apestaart at thomas--buildbot/buildbot--releases--0--patch-1
   merge in 0.6.3 release

 * org.apestaart at thomas--buildbot/buildbot--releases--0--patch-2
   merge in 0.6.4 release

 * org.apestaart at thomas/buildbot--cvsbranch--0--base-0
   tag of org.apestaart at thomas/buildbot--releases--0.6.2--patch-2

 * org.apestaart at thomas/buildbot--cvsbranch--0--patch-1
   add "tag" concept to changes, and add isTagImportant to be overridden

 * org.apestaart at thomas/buildbot--cvsbranch--0--patch-2
   and add the file to test with

 * org.apestaart at thomas/buildbot--cvsbranch--0--patch-3
   clean up logging

 * org.apestaart at thomas/buildbot--cvsbranch--0--patch-4
   unboundlocalerror fix

 * warner at monolith.lothar.com--2005/buildbot--dev--0--base-0
   tag of arch at buildbot.sf.net--2004/buildbot--dev--0--patch-130

 * warner at monolith.lothar.com--2005/buildbot--dev--0--patch-1
   Merged from arch at buildbot.sf.net--2004 (patch 131-136)

 * warner at monolith.lothar.com--2005/buildbot--dev--0--patch-2
   Merged from org.apestaart at thomas--buildbot cvstag--0-dev (patch 0-2)

 * warner at monolith.lothar.com--2005/buildbot--dev--0--patch-3
   add some docs, document Change(tag=)


Index: test_mailparse.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_mailparse.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- test_mailparse.py	24 Apr 2005 21:30:25 -0000	1.2
+++ test_mailparse.py	6 May 2005 04:42:41 -0000	1.3
@@ -199,6 +199,10 @@
         msg = util.sibpath(__file__, msg)
         return parseSyncmail(None, open(msg, "r"), prefix="buildbot")
 
+    def getNoPrefix(self, msg):
+        msg = util.sibpath(__file__, msg)
+        return parseSyncmail(None, open(msg, "r"))
+
     def testMsgS1(self):
         c = self.get("mail/syncmail.1")
         self.failUnless(c is not None)
@@ -228,4 +232,17 @@
                                    ])
         self.assertEqual(c.comments, "test cases for syncmail parser\n")
         self.assertEqual(c.isdir, 0)
+        self.assertEqual(c.tag, None)
 
+    # tests a tag
+    def testMsgS5(self):
+        c = self.getNoPrefix("mail/syncmail.5")
+        self.failUnless(c)
+        self.assertEqual(c.who, "thomas")
+        self.assertEqual(c.files, ['test1/MANIFEST',
+                                   'test1/Makefile.am',
+                                   'test1/autogen.sh',
+                                   'test1/configure.in' 
+                                   ])
+        self.assertEqual(c.tag, "BRANCH-DEVEL")
+        self.assertEqual(c.isdir, 0)





More information about the Commits mailing list