def test_set_contact_info(self): ci = ContactInfo() ci.set_contact_info(first_name='Tiny', last_name='Tina', phone='210-555-5555', email='*****@*****.**', title='Explosives Expert', org_name='Crimson Raiders', address_one='Dragon Keep', address_two='Chambers', city="Flamerock", region='Unassuming Docks', postal_code='131333', country='Pandora', fax='210-555-5554') self.assert_contact('TechContact', ci)
def test_deserialize(self): node = test_utils.create_node_from_file('contact_info.xml') contact = ContactInfo.deserialize(node) assert contact.first_name == "John" assert contact.last_name == "Doe" assert contact.phone == "2103122400" assert contact.email == "*****@*****.**" assert contact.title == "Caesar"
def test_set_contact_info(self): ci = ContactInfo() ci.set_contact_info( first_name='Tiny', last_name='Tina', phone='210-555-5555', email='*****@*****.**', title='Explosives Expert', org_name='Crimson Raiders', address_one='Dragon Keep', address_two='Chambers', city="Flamerock", region='Unassuming Docks', postal_code='131333', country='Pandora', fax='210-555-5554' ) self.assert_contact('TechContact', ci)
def test_serialize(self): ci = ContactInfo() ci.first_name = 'Tiny' ci.last_name = 'Tina' ci.phone = '210-555-5555' ci.email = '*****@*****.**' ci.title = 'Explosives Expert' ci.org_name = 'Crimson Raiders' ci.address_line_one = 'Dragon Keep' ci.address_line_two = 'Chambers' ci.city = "Flamerock" ci.region = 'Unassuming Docks' ci.postal_code = '131333' ci.country = 'Pandora' ci.fax = '210-555-5554' self.assert_contact('AdminContact', ci)