<s> from __future__ import absolute_import <EOL> from django . core . urlresolvers import reverse <EOL> from exam import fixture <EOL> from sentry . testutils import APITestCase <EOL> class UserListTest ( APITestCase ) : <EOL> @ fixture <EOL> def path ( self ) : <EOL> return reverse ( '<STR_LIT>' ) <EOL> def test_superuser_only ( self ) : <EOL> user = self . create_user ( '<STR_LIT>' ) <EOL> self . login_as ( user ) <EOL> response = self . client . get ( self . path ) <EOL> assert response . status_code == <NUM_LIT> <EOL> def test_simple ( self ) : <EOL> self . login_as ( user = self . user ) <EOL> response = self . client . get ( self . path ) <EOL> assert response . status_code == <NUM_LIT:200> <EOL> assert len ( response . data ) >= <NUM_LIT:1> </s>
