<s> from __future__ import absolute_import <EOL> from django . core . urlresolvers import reverse <EOL> from exam import fixture <EOL> from sentry . testutils import TestCase <EOL> class ProjectIssueTrackingTest ( TestCase ) : <EOL> def setUp ( self ) : <EOL> super ( ProjectIssueTrackingTest , self ) . setUp ( ) <EOL> self . owner = self . create_user ( ) <EOL> self . organization = self . create_organization ( owner = self . owner ) <EOL> self . team = self . create_team ( organization = self . organization ) <EOL> self . project = self . create_project ( team = self . team ) <EOL> @ fixture <EOL> def path ( self ) : <EOL> return reverse ( '<STR_LIT>' , args = [ <EOL> self . organization . slug , self . project . slug , <EOL> ] ) <EOL> def test_renders_with_context ( self ) : <EOL> self . login_as ( self . owner ) <EOL> resp = self . client . get ( self . path ) <EOL> assert resp . status_code == <NUM_LIT:200> <EOL> self . assertTemplateUsed ( resp , '<STR_LIT>' ) <EOL> assert resp . context [ '<STR_LIT>' ] == self . project </s>
