def test_contact(self): account = Account(name="John SARL") contact = Contact(first_name="John", last_name="Test User", email="*****@*****.**") contact.account = account self.check_editable(contact) eq_([contact], account.contacts) d = contact.to_dict() j = contact.to_json()