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/'})
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