'Make sure get_group_for_user returns None if no group is already
assigned to a user instead of assigning/creating a group automatically'

def test_get_group_for_user_with_assign(self):

    group = RandomUserPartitionScheme.get_group_for_user(self.MOCK_COURSE_ID, self.user, self.user_partition, assign=False)
    self.assertIsNone(group)
    group = RandomUserPartitionScheme.get_group_for_user(self.MOCK_COURSE_ID, self.user, self.user_partition)
    self.assertIsNotNone(group)
