'L{HTTPAuthSessionWrapper._selectParseHeader} returns a two-tuple giving
the L{ICredentialFactory} to use to parse the header and a string
containing the portion of the header which remains to be parsed.'

def test_selectParseResponse(self):

    basicAuthorization = 'Basic    abcdef123456'
    self.assertEqual(self.wrapper._selectParseHeader(basicAuthorization), (None, None))
    factory = BasicCredentialFactory('example.com')
    self.credentialFactories.append(factory)
    self.assertEqual(self.wrapper._selectParseHeader(basicAuthorization), (factory, 'abcdef123456'))
