def setUp(self): self.config = Config.from_sections({ 'section': { 'key': 'value', }, 'empty_section': {}, })
def setUp(self): self.config = Config.from_sections({ 'section': { 'an_int': '10', 'not_an_int': 'xxx', 'a_key': 'a_value', } })
def _test_sections(sections, expected_user, expected_name): config = Config.from_sections(sections) data = Github.get_repo_data_from_config(config) eq_(data.user, expected_user) eq_(data.name, expected_name)