114
114
class TestEnvJujuClient22(ClientTest):
116
118
def test__shell_environ(self):
118
SimpleEnvironment('baz', {'type': 'ec2'}), '1.24-foobar', 'path')
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')
122
124
def test__shell_environ_juju_home(self):
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')