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)
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())