~andreserl/maas/lp1592666

« back to all changes in this revision

Viewing changes to src/provisioningserver/rpc/tests/test_dhcp.py

  • Committer: LaMont Jones
  • Date: 2016-04-11 16:23:26 UTC
  • mfrom: (4900 maas)
  • mto: This revision was merged to the branch mainline in revision 4924.
  • Revision ID: lamont@canonical.com-20160411162326-6ycj8l2j66v2o5es
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
            call(server_address="127.0.0.1", shared_key=server.omapi_key),
412
412
        ))
413
413
 
414
 
    def test__calls_operations_in_correct_order(self):
 
414
    def test__performs_operations(self):
415
415
        omshell = Mock()
416
416
        self.patch(dhcp, "Omshell").return_value = omshell
417
417
        remove_host = make_host()
422
422
            omshell.remove,
423
423
            MockCallsMatch(
424
424
                call(remove_host["mac"]),
425
 
                call(modify_host["mac"]),
426
425
            ))
427
426
        self.assertThat(
428
427
            omshell.create,
429
428
            MockCallsMatch(
430
429
                call(add_host["ip"], add_host["mac"]),
 
430
            ))
 
431
        self.assertThat(
 
432
            omshell.modify,
 
433
            MockCallsMatch(
431
434
                call(modify_host["ip"], modify_host["mac"]),
432
435
            ))
433
436