split gravatar tests into integration and manual
[hermes] / package / test / unit / test_gravatar.py
index 077145b..eab4873 100644 (file)
@@ -15,26 +15,9 @@ class TestGravatarService(unittest.TestCase):
     def setUp(self):
         self._setUp('maemohermes@wendt.se', 'b14ec179822b')
         
-    def test_main_flow(self):
-        self.testee.pre_process_contact(self.existing_contact)
-        self.testee.pre_process_contact(self.missing_contact)
-        self.testee.process_friends()
-        self.testee.process_contact(self.existing_contact)
-        self.testee.process_contact(self.missing_contact)
-        
-        friends = self.testee.get_friends()
-        contacts = self.testee.get_contacts_with_match()
-        assert len(friends) == 1
-        assert len(contacts) == 1
-        assert self.missing_contact not in contacts.keys()
-        assert self.existing_contact in contacts.keys()
-        friend = friends[0]
-        assert friend.get_name() == self.existing_contact.get_name()
-        print friend.get_photo_url()
-        
-        
     def test_that_a_person_with_two_addresses_and_one_gravatar_works(self):
-        self._fake_server_response({self.missing_address: None, self.existing_address: "http://url.to.img/"})
+        self._fake_server_response({self.missing_address: None,
+                                    self.existing_address: "http://url.to.img/"})
         
         self.testee.pre_process_contact(self.multiple_contact)
         self.testee.process_friends()