Example #1
0
 def testExtractData(self):
     """extract_data should not raise any error"""
     secret = SecretParser()
     config = {'zebra': 'xx', 'jira': 'xx', 'output_dir': 'xx'}
     secret.extract_data(config)
     self.assertTrue(secret.zebra_data is not None)
     self.assertTrue(secret.jira_data is not None)
     self.assertTrue(secret.output_dir is not None)
Example #2
0
 def testExtractData(self):
     """extract_data should not raise any error"""
     secret = SecretParser()
     config = {'zebra': 'xx', 'jira': 'xx', 'output_dir': 'xx'}
     secret.extract_data(config)
     self.assertTrue(secret.zebra_data is not None)
     self.assertTrue(secret.jira_data is not None)
     self.assertTrue(secret.output_dir is not None)
Example #3
0
 def testOutputDirEndsWithSlash(self):
     """get_output_dir should end with a slash"""
     secret = SecretParser()
     config = {'zebra': 'xx', 'jira': 'xx', 'output_dir': 'xx'}
     secret.extract_data(config)
     self.assertEquals('xx/', secret.get_output_dir())
Example #4
0
 def testOutputDirEndsWithSlash(self):
     """get_output_dir should end with a slash"""
     secret = SecretParser()
     config = {'zebra': 'xx', 'jira': 'xx', 'output_dir': 'xx'}
     secret.extract_data(config)
     self.assertEquals('xx/', secret.get_output_dir())