Esempio n. 1
0
 def setUp(self):
     self.config = Config.from_sections({
         'section': {
             'key': 'value',
         },
         'empty_section': {},
     })
Esempio n. 2
0
 def setUp(self):
     self.config = Config.from_sections({
         'section': {
             'an_int': '10',
             'not_an_int': 'xxx',
             'a_key': 'a_value',
         }
     })
Esempio n. 3
0
 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)