[csw-devel] SF.net SVN: gar:[13363] csw/mgar/gar/v2/lib/python/uwatch_test.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Fri Feb 18 16:55:37 CET 2011
Revision: 13363
http://gar.svn.sourceforge.net/gar/?rev=13363&view=rev
Author: wahwah
Date: 2011-02-18 15:55:37 +0000 (Fri, 18 Feb 2011)
Log Message:
-----------
uwatch: A stub unit test file
Contains one test for the function comparing versions.
Added Paths:
-----------
csw/mgar/gar/v2/lib/python/uwatch_test.py
Added: csw/mgar/gar/v2/lib/python/uwatch_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/uwatch_test.py (rev 0)
+++ csw/mgar/gar/v2/lib/python/uwatch_test.py 2011-02-18 15:55:37 UTC (rev 13363)
@@ -0,0 +1,19 @@
+#!/usr/bin/env python2.6
+
+import unittest
+import uwatch
+
+class UpstreamWatchCommandUnitTest(unittest.TestCase):
+
+ V1 = "1.8.1,REV=2010.07.13"
+ V2 = "1.8.2,REV=2011.01.17"
+
+ def testCompareVersionAndGetNewest(self):
+ uwc = uwatch.UpstreamWatchCommand("fake name")
+ self.assertEquals(
+ self.V2,
+ uwc.CompareVersionAndGetNewest(self.V1, self.V2))
+
+
+if __name__ == '__main__':
+ unittest.main()
Property changes on: csw/mgar/gar/v2/lib/python/uwatch_test.py
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list