'L{calcHA1} raises L{TypeError} when any of the pszUsername, pszRealm,
or pszPassword arguments are specified with the preHA1 keyword
argument.'

def test_incompatibleCalcHA1Options(self):

    arguments = (('user', 'realm', 'password', 'preHA1'), (None, 'realm', None, 'preHA1'), (None, None, 'password', 'preHA1'))
    for (pszUsername, pszRealm, pszPassword, preHA1) in arguments:
        self.assertRaises(TypeError, calcHA1, 'md5', pszUsername, pszRealm, pszPassword, 'nonce', 'cnonce', preHA1=preHA1)
