Exemplo n.º 1
0
def test_parse_env_not_env():
    """
    Tests the return of an env that is not an env
    """
    assert cmdmod._parse_env(None) == {}
Exemplo n.º 2
0
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"])
Exemplo n.º 3
0
 def test_parse_env_dict(self):
     '''
     Test the return of an env that is not a dict
     '''
     self.assertEqual(cmdmod._parse_env('test'), {})
Exemplo n.º 4
0
def test_parse_env_dict():
    """
    Test the return of an env that is not a dict
    """
    assert cmdmod._parse_env("test") == {}
Exemplo n.º 5
0
 def test_parse_env_not_env(self):
     '''
     Tests the return of an env that is not an env
     '''
     self.assertEqual(cmdmod._parse_env(None), {})
Exemplo n.º 6
0
 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']))
Exemplo n.º 7
0
 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"]))
Exemplo n.º 8
0
 def test_parse_env_dict(self):
     """
     Test the return of an env that is not a dict
     """
     self.assertEqual(cmdmod._parse_env("test"), {})
Exemplo n.º 9
0
 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']))
Exemplo n.º 10
0
 def test_parse_env_not_env(self):
     '''
     Tests the return of an env that is not an env
     '''
     self.assertEqual(cmdmod._parse_env(None), {})
Exemplo n.º 11
0
 def test_parse_env_dict(self):
     '''
     Test the return of an env that is not a dict
     '''
     self.assertEqual(cmdmod._parse_env('test'), {})
Exemplo n.º 12
0
 def test_parse_env_dict(self):
     """
     Test the return of an env that is not a dict
     """
     self.assertEqual(cmdmod._parse_env("test"), {})
Exemplo n.º 13
0
 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"]))