def setUp(self): # Make sure contact with such email doesn't exist. contact = Contact.get(self.email) self.assertIsNone(contact) # Create contact manually. self.contact = Contact.create(self.email, FirstName=self.first_name, LastName=self.last_name) # Create ticket from same email as just created contact. self.ticket = Ticket.create(self.email, self.first_name, self.last_name, self.ticket_name, self.ticket_text) self.ticket_contact = Contact.get(self.email)
def setUp(self): self.returned_ticket = Ticket.create(self.email, self.first_name, self.last_name, self.ticket_name, self.ticket_text) self.ticket = Ticket(self.returned_ticket.id) self.contact = Contact.get(self.email)