'Helper method for requests with OAUTH token'

def assert_oauth_status(self, access_token, expected_status):

    self.client.logout()
    auth_header = 'Bearer    {0}'.format(access_token)
    response = self.client.get(self.get_url(self.student.username), HTTP_AUTHORIZATION=auth_header)
    self.assertEqual(response.status_code, expected_status)
