def test_authFailure(self):
        self.options.parseOptions(['--auth', 'file:' + self.filename])
        checker = self.options['credCheckers'][-1]
        invalid = credentials.UsernamePassword(self.usernamePassword[0], 'fake')
        return (checker.requestAvatarId(invalid)
            .addCallbacks(
                lambda ignore: self.fail("Wrong password should raise error"),
                lambda err: err.trap(error.UnauthorizedLogin)))
Create pika friendly credentials object.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_ftp_options.py/FTPOptionsTestCase.test_authFailure--crossover with--dataset/ETHPy150Open niwinz/django-greenqueue/greenqueue/backends/rabbitmq.py/RabbitMQService.create_credentials