gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r152907 - gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py
Date Tue, 08 Feb 2005 18:36:31 GMT
Author: leosimons
Date: Tue Feb  8 10:36:30 2005
New Revision: 152907

URL: http://svn.apache.org/viewcvs?view=rev&rev=152907
Log:
make mock test case work. Kinda.

Modified:
    gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py

Modified: gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py?view=diff&r1=152906&r2=152907
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py Tue Feb  8 10:36:30 2005
@@ -21,21 +21,21 @@
 
 from gump.test.mockobjects import *
 from gump.plugins.dynagumper import Dynagumper
+from gump.model import Project
 
 mock = MockObjects()
 
 class DynagumperTestCase(unittest.TestCase):
     def setUp(self):
-        self.dynagumper = Dynagumper(mock.run,mock.database,mock.log)
+        self.dynagumper = Dynagumper(mock.database,mock.log)
+        self.project = Project("blah", "blah")
+        self.project.startdate = "21 June 2005"
+        self.project.enddate = "22 June 2005"
     
     def testEnsureThisHostIsInDatabase(self):
         #TODO actual tests
         self.dynagumper.ensureThisHostIsInDatabase()
 
-    def testVisitOtherEvent(self):
-        #TODO
-        self.dynagumper.VisitOtherEvent("blah")
-    
     def testVisitWorkSpace(self):
         #TODO
         self.dynagumper.visit_workspace("blah")
@@ -46,7 +46,7 @@
     
     def testVisitProject(self):
         #TODO
-        self.dynagumper.visit_project("blah")
+        self.dynagumper.visit_project(self.project)
 
 # this is used by testrunner.py to determine what tests to run
 def test_suite():



Mime
View raw message