Create factory for Xmodule items

This commit is contained in:
Jay Zoldak
2012-11-14 15:12:09 -05:00
parent 58fef4a32a
commit 6f5b3fa1bb
2 changed files with 61 additions and 1 deletions

View File

@@ -323,3 +323,16 @@ class ContentStoreTest(TestCase):
def test_edit_unit_full(self):
self.check_edit_unit('full')
def test_factory(self):
from factories import *
course = CourseFactory.create()
print '\n'
print course
print '\n'
section = ItemFactory.create()
print '\n'
print section
print '\n'