def test_digest(self): self.assertTrue( '2GNfPPMxfosE5u4AOY7mRAawMp8=' == \ auth.get_digest('password', {'ecp_username':'******'}))
def get_auth_args(): "Get query string with auth digest for GET" return "ecp_username=%s&ecp_auth_digest=%s" % ( USER, auth.get_digest(PASSWD, {'ecp_username': USER}))