def test_only_one_fn_will_be_stored(self): vcard = vCard() wrapper = VCardWrapper(vcard) wrapper.formatted_name = 'foo bar' self.assertEqual(len(vcard.contents['fn']), 1)
def test_fn_can_be_set_with_a_string(self): vcard = vCard() wrapper = VCardWrapper(vcard) wrapper.formatted_name = 'foo bar' self.assertEqual(vcard.fn.value, 'foo bar')