'Calling L{checkers.SSHPublicKeyChecker.requestAvatarId} with
credentials that have a bad key fails with L{keys.BadKeyError}.'

def test_credentialsWithBadKey(self):

    self.credentials.blob = ''
    self.failureResultOf(self.checker.requestAvatarId(self.credentials), keys.BadKeyError)
