def setUp(self): self.created_ticket_name = self.random_name self.ticket = Ticket.create(self.email, self.first_name, self.last_name, self.created_ticket_name, self.ticket_text) self.ticket.update(Name=self.NEW_NAME) self.ticket = Ticket(self.ticket.id)
def setUp(self): self.created_ticket_name = self.random_name self.ticket = Ticket.create(self.email, self.first_name, self.last_name, self.created_ticket_name, self.ticket_text) self.assertEqual(len(Ticket.search(Name=self.created_ticket_name)), 1) self.contacts = self.ticket.contacts self.ticket.delete() self.found_tickets = Ticket.search(Name=self.created_ticket_name)
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.created_ticket_name = self.random_name self.ticket = Ticket.create(self.email, self.first_name, self.last_name, self.created_ticket_name, self.ticket_text) self.found_tickets = Ticket.search(Name=self.created_ticket_name)
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)