예제 #1
0
def test_parse_env_not_env():
    """
    Tests the return of an env that is not an env
    """
    assert cmdmod._parse_env(None) == {}
예제 #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"])
예제 #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'), {})
예제 #4
0
def test_parse_env_dict():
    """
    Test the return of an env that is not a dict
    """
    assert cmdmod._parse_env("test") == {}
예제 #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), {})
예제 #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']))
예제 #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"]))
예제 #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"), {})
예제 #9
0
파일: cmdmod_test.py 프로젝트: bryson/salt
 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']))
예제 #10
0
파일: cmdmod_test.py 프로젝트: bryson/salt
 def test_parse_env_not_env(self):
     '''
     Tests the return of an env that is not an env
     '''
     self.assertEqual(cmdmod._parse_env(None), {})
예제 #11
0
파일: cmdmod_test.py 프로젝트: bryson/salt
 def test_parse_env_dict(self):
     '''
     Test the return of an env that is not a dict
     '''
     self.assertEqual(cmdmod._parse_env('test'), {})
예제 #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"), {})
예제 #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"]))