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

« back to all changes in this revision

Viewing changes to tests/test_schedule_chaos_tests.py

  • Committer: Aaron Bentley
  • Date: 2016-04-24 16:09:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1372.
  • Revision ID: aaron.bentley@canonical.com-20160424160949-6x1jdnkkpkcd820m
Rename create_model to add_model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        with temp_dir() as root:
51
51
            write_config(root, 'foo', 'token_str')
52
52
            start_job(root, 'foo', '/some/path', 'me', 'pw', 1)
53
 
        j_mock.assert_called_once_with(
54
 
            'http://juju-ci.vapour.ws:8080', 'me', 'pw')
 
53
        j_mock.assert_called_once_with('http://localhost:8080', 'me', 'pw')
55
54
        calls = j_mock.return_value.build_job.mock_calls
56
 
        expected = [
57
 
            call('foo', {'juju_bin': '/some/path', 'sequence_number': 1})]
 
55
        expected = [call('foo', {'juju_bin': '/some/path',
 
56
                         'sequence_number': 1},
 
57
                    token='token_str')]
58
58
        self.assertEqual(calls, expected)
59
59
 
60
60