'L{basic.BasicCredentialFactory.decode} decodes a base64-encoded
response with incorrect padding.'

def test_incorrectPadding(self):

    response = b64encode(''.join([self.username, ':', self.password]))
    response = response.strip('=')
    creds = self.credentialFactory.decode(response, self.request)
    self.assertTrue(verifyObject(IUsernamePassword, creds))
    self.assertTrue(creds.checkPassword(self.password))
