Exemplo n.º 1
0
 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):
     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)
Exemplo n.º 3
0
    def test_aspectize_sections(self):
        section = Section('test')
        sections = {'test': section}
        aspectize_sections(sections)

        self.assertIsNone(sections['test'].aspects)