def test_aspectize_sections(self): no_aspect_section = Section('no aspect') self.sections['no aspect'] = no_aspect_section aspectize_sections(self.sections) self.assertTrue(validate_aspect_config(self.section)) self.assertEqual(self.section.aspects[0], CommitMessage('py')) self.assertIsNone(no_aspect_section.aspects)
def test_aspectize_sections(self): section = Section('test') sections = {'test': section} aspectize_sections(sections) self.assertIsNone(sections['test'].aspects)