~vila/uci-engine/enable-nova-and-swift

« back to all changes in this revision

Viewing changes to ticket_system/ticket/tests/test_write_api.py

  • Committer: Evan Dandrea
  • Date: 2014-06-30 12:07:54 UTC
  • mfrom: (630 uci-engine)
  • mto: This revision was merged to the branch mainline in revision 655.
  • Revision ID: evan.dandrea@canonical.com-20140630120754-z6x5eqdahpp2qfrt
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
322
322
            Ticket.objects.get(pk=self.ticket.pk).status,
323
323
            int(TicketWorkflowStepStatus.COMPLETED))
324
324
 
 
325
    def test_patch_lander_unit(self):
 
326
        new_data = {'lander_unit': 123}
 
327
        self.patch('/api/v1/' + self.ticket_detail_url, new_data)
 
328
        unit = Ticket.objects.get(pk=self.ticket.pk).lander_unit
 
329
        self.assertEqual(new_data['lander_unit'], unit)
 
330
 
325
331
    def test_update_ticket_status_complete(self):
326
332
        new_data = {
327
333
            "current_workflow_step": TicketWorkflowStep.COMPLETED.value,