+ def test_section(self):
+ '''
+ Test Section class.
+ '''
+ section = Section(section = 'python')
+ self.session.add(section)
+ self.session.flush()
+ self.assertEqual('python', section.section)
+ self.assertEqual('python', section)
+ self.assertTrue(section != 'java')
+ self.assertEqual(section, get_section('python', self.session))
+ all_sections = get_sections(self.session)
+ self.assertEqual(section.section_id, all_sections['python'])
+ self.assertEqual(0, section.overrides.count())
+