'Verify that an access_token generated for a RestrictedApplication fails when
submitted to an API endpoint'

def test_restricted_access_token(self):

    response = self._post_request(self.user, self.restricted_dot_app)
    self.assertEqual(response.status_code, 200)
    data = json.loads(response.content)
    self.assertIn('expires_in', data)
    self.assertIn('access_token', data)
    self.assertLess(data['expires_in'], 0)
    self._assert_access_token_invalidated(data['access_token'])
