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

« back to all changes in this revision

Viewing changes to tests/test_jujupy.py

  • Committer: Aaron Bentley
  • Date: 2015-12-11 17:24:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1193.
  • Revision ID: aaron.bentley@canonical.com-20151211172419-oo3a2luo86i3v846
Stop duplicating EnvJjujuClient.env implicitly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
477
477
 
478
478
class TestEnvJujuClient(ClientTest):
479
479
 
 
480
    def test_no_duplicate_env(self):
 
481
        env = SimpleEnvironment('foo', {})
 
482
        client = EnvJujuClient(env, '1.25', 'full_path')
 
483
        self.assertIs(env, client.env)
 
484
 
480
485
    def test_get_version(self):
481
486
        value = ' 5.6 \n'
482
487
        with patch('subprocess.check_output', return_value=value) as vsn: