def get_user_email(self, config_file=None): """ Returns user's email from global configuration file. :param config_file: A path to file which should be used to retrieve configuration from (might also be a list of file paths) """ username = self.get_config_value('ui', 'username') if username: return author_email(username) return None
def test_author_email(self): for test_str, result in self.TEST_AUTHORS: self.assertEqual(result[1], author_email(test_str))
def author_email(self): """ Returns Author email address for given commit """ return author_email(self.author)