'Verify the endpoint supports authentication via OAuth 2.0.'

def test_oauth(self):

    access_token = AccessTokenFactory(user=self.user, client=ClientFactory()).token
    headers = {u'HTTP_AUTHORIZATION': (u'Bearer    ' + access_token)}
    self.client.logout()
    response = self.client.get(self.path, **headers)
    self.assertEqual(response.status_code, 200)
