Пример #1
0
 def test_digest(self):
     self.assertTrue(
         '2GNfPPMxfosE5u4AOY7mRAawMp8=' == \
             auth.get_digest('password', {'ecp_username':'******'}))
Пример #2
0
 def test_digest(self):
     self.assertTrue(
         '2GNfPPMxfosE5u4AOY7mRAawMp8=' == \
             auth.get_digest('password', {'ecp_username':'******'}))
Пример #3
0
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}))
Пример #4
0
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}))