def test_update_bad_type(self):
    r = self.login('popular')
    r = self.client.post('/api/keys/TESTDESKTOPCONSUMER', {
      'nick': 'popular@example.com',
      '_nonce': util.create_nonce('popular', 'oauth_consumer_update'),
      'oauth_consumer_update': '',
      'app_name': 'Foo',
      'consumer_type' : 'Bad Consumer Type',
      'consumer_key' : 'TESTDESKTOPCONSUMER',
    })

    # TODO(tyler): I think I'm smoking crack, but there should be a better
    # error, and I don't know why it isn't happening.  The validation
    # is failing (as it should), but there doesn't seem to be any error
    # page or message to the user.
    self.assertWellformed(r)
Compute a cache key from the constructor's preprocessed arguments.
dataset/ETHPy150Open CollabQ/CollabQ/api/tests.py/OAuthTest.test_update_bad_type--crossover with--dataset/ETHPy150Open OP2/PyOP2/pyop2/caching.py/ObjectCached._cache_key