~charm-helpers/charm-helpers/devel

« back to all changes in this revision

Viewing changes to tests/contrib/hahelpers/test_apache_utils.py

  • Committer: Christopher Glass
  • Date: 2015-07-15 13:53:52 UTC
  • mfrom: (401.1.4 fix-mock-failures)
  • Revision ID: christopher.glass@canonical.com-20150715135352-5e4ru3za0r2xx4qw
Merge lp:~adam-collard/charm-helpers/fix-mock-failures [a=adam.collard] [r=tribaal]

This branch fixes "make test". You might need to "rm -r .venv" and "rm -r .venv3" for this to work properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
            apache_utils.install_ca_cert(cert)
116
116
            _open.assert_called_with('/usr/local/share/ca-certificates/keystone_juju_ca_cert.crt', 'w')
117
117
            _file.write.assert_called_with(cert)
118
 
        self.subprocess.assertCalledWith(['update-ca-certificates', '--fresh'])
 
118
        self.subprocess.check_call.assert_called_with(['update-ca-certificates', '--fresh'])