def METHOD_NAME(self):
    payload = {
        'username': 'professor',
        'password': 'professor'
    }
    response = self.client.post('/auth/login', data=json.dumps(payload), content_type='application/json')
    self.assertEqual(response.status_code, 200)
    data = json.loads(response.data.decode('utf-8'))
    self.assertIn('token', data)
    with self.app.test_request_context():
        jwt = Jwt.parse(data['token'])
    self.assertEqual(jwt.issuer, 'http://localhost/')
    self.assertEqual(jwt.name, 'Hubert J. Farnsworth')
    self.assertEqual(jwt.preferred_username, 'professor@planetexpress.com')
    self.assertEqual(jwt.email, 'professor@planetexpress.com')
    self.assertEqual(jwt.provider, 'ldap')
    self.assertEqual(jwt.orgs, [])
    self.assertEqual(jwt.groups, ['cn=admin_staff,ou=people,dc=planetexpress,dc=com'])
    self.assertEqual(jwt.roles, ['admin'])
    self.assertEqual(jwt.scopes, ['admin', 'read', 'write'])
    self.assertEqual(jwt.email_verified, True)
    self.assertEqual(jwt.picture, None)
    self.assertEqual(jwt.customers, [])