'Test get_cohorted_user_partition returns None when there are no cohorted user partitions.'

def test_no_cohort_user_partitions(self):

    self.course.user_partitions.append(self.random_user_partition)
    self.assertIsNone(get_cohorted_user_partition(self.course))
