'Verify that a routine course export task succeeds'

def test_success(self):

    key = str(self.course.location.course_key)
    result = export_olx.delay(self.user.id, key, u'en')
    status = UserTaskStatus.objects.get(task_id=result.id)
    self.assertEqual(status.state, UserTaskStatus.SUCCEEDED)
    artifacts = UserTaskArtifact.objects.filter(status=status)
    self.assertEqual(len(artifacts), 1)
    output = artifacts[0]
    self.assertEqual(output.name, 'Output')
