'Make sure when generating an access_token for a restricted client
that the token is immediately expired'

def test_get_restricted_access_token(self):

    models.AccessToken.objects.create(token='expired-token-id', application=self.restricted_client, user=self.user, expires=(now() + timedelta(days=30)))
    readback_token = self.adapter.get_access_token(token_string='expired-token-id')
    self.assertTrue(RestrictedApplication.verify_access_token_as_expired(readback_token))
