~natefinch/juju-ci-tools/logrot

« back to all changes in this revision

Viewing changes to test_jujupy.py

  • Committer: Nate Finch
  • Date: 2015-06-03 15:41:31 UTC
  • Revision ID: nate.finch@canonical.com-20150603154131-i8tv9zmaa6rq0cy5
one more fix to TestEnvJujuClient22

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
 
114
114
class TestEnvJujuClient22(ClientTest):
115
115
 
 
116
    client_class = EnvJujuClient22
 
117
 
116
118
    def test__shell_environ(self):
117
 
        client = EnvJujuClient22(
118
 
            SimpleEnvironment('baz', {'type': 'ec2'}), '1.24-foobar', 'path')
 
119
        client = self.client_class(
 
120
            SimpleEnvironment('baz', {'type': 'ec2'}), '1.22-foobar', 'path')
119
121
        env = client._shell_environ()
120
122
        self.assertEqual(env.get(JUJU_DEV_FEATURE_FLAGS), 'actions')
121
123
 
122
124
    def test__shell_environ_juju_home(self):
123
 
        client = EnvJujuClient22(
 
125
        client = self.client_class(
124
126
            SimpleEnvironment('baz', {'type': 'ec2'}), '1.22-foobar', 'path')
125
127
        env = client._shell_environ(juju_home='asdf')
126
128
        self.assertEqual(env['JUJU_HOME'], 'asdf')