'Verify that when requesting a JWT token from a restricted Application
within the DOT subsystem, that our claims is marked as already expired
(i.e. expiry set to Jan 1, 1970)'

def test_restricted_jwt_access_token(self):

    response = self._post_request(self.user, self.restricted_dot_app, token_type='jwt')
    self.assertEqual(response.status_code, 200)
    data = json.loads(response.content)
    self.assertIn('expires_in', data)
    self.assertLess(data['expires_in'], 0)
    self.assertEqual(data['token_type'], 'JWT')
    self.assert_valid_jwt_access_token(data['access_token'], self.user, data['scope'].split('    '), should_be_expired=True)
