def test_parse_env_not_env(): """ Tests the return of an env that is not an env """ assert cmdmod._parse_env(None) == {}
def test_parse_env_list(): """ Tests the return of an env that is a list """ ret = {"foo": None, "bar": None} assert ret == cmdmod._parse_env(["foo", "bar"])
def test_parse_env_dict(self): ''' Test the return of an env that is not a dict ''' self.assertEqual(cmdmod._parse_env('test'), {})
def test_parse_env_dict(): """ Test the return of an env that is not a dict """ assert cmdmod._parse_env("test") == {}
def test_parse_env_not_env(self): ''' Tests the return of an env that is not an env ''' self.assertEqual(cmdmod._parse_env(None), {})
def test_parse_env_list(self): ''' Tests the return of an env that is a list ''' ret = {'foo': None, 'bar': None} self.assertEqual(ret, cmdmod._parse_env(['foo', 'bar']))
def test_parse_env_list(self): """ Tests the return of an env that is a list """ ret = {"foo": None, "bar": None} self.assertEqual(ret, cmdmod._parse_env(["foo", "bar"]))
def test_parse_env_dict(self): """ Test the return of an env that is not a dict """ self.assertEqual(cmdmod._parse_env("test"), {})