X-Git-Url: http://git.maemo.org/git/?p=gc-dialer;a=blobdiff_plain;f=hand_tests%2Ftest_directdial.py;fp=hand_tests%2Ftest_directdial.py;h=ace20d354c6a9a808bf75a2a3db3b2565a4c2e33;hp=0000000000000000000000000000000000000000;hb=488c9854619f8ca9d8cb521f191c8200ccdae881;hpb=5f523a1060b32b25030113b74024da4bc7bf5f2d diff --git a/hand_tests/test_directdial.py b/hand_tests/test_directdial.py new file mode 100755 index 0000000..ace20d3 --- /dev/null +++ b/hand_tests/test_directdial.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python + +import sys +import logging + + +_moduleLogger = logging.getLogger(__name__) +sys.path.insert(0,"../src") + +import backends.gvoice + + +def main(username, password, number): + gvoice = backends.gvoice.GVoiceBackend() + gvoice.login(username, password) + gvoice._browser.USER_AGENT = "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" + page = gvoice._browser.download("https://www.google.com/voice/m/x?m=call&n=18004664411&f=&v=6", {}) + print page + + +if __name__ == "__main__": + args = sys.argv[1:] + main(args[0], args[1], "")