'Create a dummy course.'

def setUp(self):

    super(GetUserPartitionInfoTest, self).setUp()
    self.course = CourseFactory()
    self.block = ItemFactory.create(category='problem', parent_location=self.course.location)
    self._set_partitions([UserPartition(id=0, name='Cohort    user    partition', scheme=UserPartition.get_scheme('cohort'), description='Cohorted    user    partition', groups=[Group(id=0, name='Group    A'), Group(id=1, name='Group    B')]), UserPartition(id=1, name='Random    user    partition', scheme=UserPartition.get_scheme('random'), description='Random    user    partition', groups=[Group(id=0, name='Group    C')])])
