return None
def get_emails(self):
return []
+ def set_photo(self, value):
+ self.set_photo_url(value)
+ def get_birthday(self):
+ return self.get_birthday_date()
class FakeEContact():
def __init__(self, name):
assert len(self.hermes.updated) == 0
- def test_one_contact_and_one_match(self):
+ def test_one_contact_and_one_match_and_no_field_updated(self):
contact = FakeEContact("Fredrik")
friend = Friend("Fredrik", props={'birthday_date':'1980-10-15'})
self.abook.contacts.append(contact)
assert len(self.service.contacts_pre_processed) == 1
assert len(self.hermes.unmatched) == 0
assert len(self.hermes.matched) == 1
- assert len(self.hermes.updated) == 1
+ assert len(self.hermes.updated) == 0
# faked to avoid evolution/ebook dependency