Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
index ffc70bd..99671a8 100644 (file)
@@ -18,6 +18,20 @@ class TestGravatarService(unittest.TestCase):
         self._setUp('', '')
         
         
+    def test_several_things(self):
+        contact = FakeContact([known_address])
+        self._fake_server_response({known_address: 'http://image.exists.here/',
+                                    'extra@here': 'http://nowhere'})
+        
+        self.testee.pre_process_contact(contact);
+        self.testee.process_friends()
+        friend = self.testee.process_contact(contact)
+        
+        assert isinstance(friend, Friend)
+        assert len(self.testee.get_friends_to_create_contacts_for()) == 0
+        assert len(self.testee.get_unmatched_friends()) == 0 # doesn't matter should always
+        
+        
     def test_that_process_contact_returns_friend_object_if_contact_is_known(self):
         contact = FakeContact([known_address])
         self._fake_server_response({known_address: 'http://image.exists.here/'})
@@ -46,8 +60,8 @@ class TestGravatarService(unittest.TestCase):
         self.testee.process_friends()
         self.testee.process_contact(self.multiple_contact)
         
-        friends = self.testee.get_friends()
-        contacts = self.testee.get_contacts_with_match()
+        friends = self.testee._get_friends()
+        contacts = self.testee._get_contacts_with_match()
         assert len(friends) == 1
         assert len(contacts) == 1
         assert self.multiple_contact in contacts

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment