Some test cleanups

This commit is contained in:
Victor Shnayder
2013-01-24 17:33:25 -05:00
parent 69711a91ff
commit 22ccf9c500
3 changed files with 9 additions and 4 deletions

View File

@@ -368,13 +368,15 @@ class ImportTestCase(unittest.TestCase):
self.assertFalse(course.is_cohorted)
# empty config -> False
course.metadata['cohort-config'] = {}
course.metadata['cohort_config'] = {}
self.assertFalse(course.is_cohorted)
# false config -> False
course.metadata['cohort-config'] = {'cohorted': False}
course.metadata['cohort_config'] = {'cohorted': False}
self.assertFalse(course.is_cohorted)
# and finally...
course.metadata['cohort-config'] = {'cohorted': True}
course.metadata['cohort_config'] = {'cohorted': True}
self.assertTrue(course.is_cohorted)