<s> from __future__ import absolute_import <EOL> from django . core . urlresolvers import reverse <EOL> from sentry . models import ( <EOL> OrganizationOnboardingTask , OnboardingTask , OnboardingTaskStatus <EOL> ) <EOL> from sentry . testutils import APITestCase <EOL> class SkipOnboardingTaskTest ( APITestCase ) : <EOL> def test_skip_onboarding_task ( self ) : <EOL> self . login_as ( user = self . user ) <EOL> organization = self . create_organization ( name = '<STR_LIT:foo>' , owner = self . user ) <EOL> url = reverse ( '<STR_LIT>' , kwargs = { '<STR_LIT>' : organization . slug } ) <EOL> self . client . post ( url , data = { '<STR_LIT>' : '<STR_LIT>' , '<STR_LIT:status>' : '<STR_LIT>' } , format = '<STR_LIT>' ) <EOL> oot = OrganizationOnboardingTask . objects . get ( <EOL> organization = organization , <EOL> task = OnboardingTask . ISSUE_TRACKER , <EOL> status = OnboardingTaskStatus . SKIPPED <EOL> ) <EOL> assert oot </s>
