~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to test_joyent.py

  • Committer: Seman
  • Date: 2015-08-06 20:18:37 UTC
  • mfrom: (1057.1.2 update-mock-calls)
  • Revision ID: seman.said@canonical.com-20150806201837-v9msj438yq2zwcgs
Updated mock calls from assert_call_any to assert_called_once_with.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
                    with patch.object(client, 'request_deletion',
83
83
                                      autospec=True) as rd_mock:
84
84
                        client.delete_old_machines(1, 'foo@bar')
85
 
        lm_mock.assert_call_any(None)
86
 
        lm_mock.assert_call_any('id')
 
85
        lm_mock.assert_called_once_with()
87
86
        lmt_mock.assert_called_once_with('id')
88
87
        drm_mock.assert_called_once_with('id')
89
88
        self.assertEqual(0, rd_mock.call_count)