def setUp(self): date_time = datetime.utcnow().isoformat('T') self.m = Customer.get_mock_object() self.m.gender = 'M' self.m.billing_address = 0 self.m.shipping_address = 0 self.m.company = 'Expressly' self.m.dob = date.today() self.m.online_presence = [FieldValue.get_mock_object()] self.m.date_updated = date_time self.m.date_last_order = date_time self.m.number_ordered = 1 self.m.emails = [Email.get_mock_object()] self.m.phones = [Phone.get_mock_object()] self.m.addresses = [Address.get_mock_object()]
def setUp(self): self.m = Customer.get_mock_object()