def test_user_list(self): request = self.request request.user = self.current_user assert json.loads( users_fetch( request.get('/api/v0.1/users_fetch?user={}'.format( self.current_user.id))).content)['count'] == 21
def test_user_list(self): assert json.loads( users_fetch(self.request.get( '/api/v0.1/users_fetch/')).content)['count'] == 20