Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorFredrik Wendt <fredrik@wendt.se>
Sun, 6 Jun 2010 16:48:36 +0000 (18:48 +0200)
committerFredrik Wendt <fredrik@wendt.se>
Sun, 6 Jun 2010 16:48:36 +0000 (18:48 +0200)
package/test/test_syncjob.py

index e677dfa..4b2246d 100644 (file)
@@ -1,14 +1,9 @@
 import unittest
 import unittest
-from syncjob import Syncjob
+from org.maemo.hermes.engine.syncjob import Syncjob
 
 class FakeContact():
 
 class FakeContact():
-    def __init__(self, name, addr):
-        self.name = name
-        self.urls = [addr]
-    def get_emails(self):
-        return self.urls
-    def get_name(self):
-        return self.name
+    def __init__(self):
+        pass
     
 class FakeService():
     def __init__(self):
     
 class FakeService():
     def __init__(self):
@@ -29,7 +24,7 @@ class TestSyncJob(unittest.TestCase):
     def setUp(self):
         self.service = FakeService() 
         self.services = [self.service]
     def setUp(self):
         self.service = FakeService() 
         self.services = [self.service]
-        self.contact = FakeContact('Fredrik Wendt', 'fredrik@wendt.se')
+        self.contact = FakeContact()
         self.contacts = [self.contact]
         self.testee = Syncjob(self.services, self.contacts)
         
         self.contacts = [self.contact]
         self.testee = Syncjob(self.services, self.contacts)
         

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment