def test_env_get_set_simple(self):
    env = _ip.magic('env var val1')
    self.assertEqual(env, None)
    self.assertEqual(os.environ['var'], 'val1')
    self.assertEqual(_ip.magic('env var'), 'val1')
    env = _ip.magic('env var=val2')
    self.assertEqual(env, None)
    self.assertEqual(os.environ['var'], 'val2')
def test_env_get_set_simple(self):
    env = _ip.magic('env var val1')
    self.assertEqual(env, None)
    self.assertEqual(os.environ['var'], 'val1')
    self.assertEqual(_ip.magic('env var'), 'val1')
    env = _ip.magic('env var=val2')
    self.assertEqual(env, None)
    self.assertEqual(os.environ['var'], 'val2')