From: Ed Page Date: Mon, 19 Jul 2010 23:14:34 +0000 (-0500) Subject: More testing X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=8571677d2113cdba41a6d35dd192fc41d63bdd8b;p=gc-dialer More testing --- diff --git a/hand_tests/test_directdial.py b/hand_tests/test_directdial.py index ace20d3..84277f3 100755 --- a/hand_tests/test_directdial.py +++ b/hand_tests/test_directdial.py @@ -13,11 +13,17 @@ 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", {}) + page = gvoice._get_page_with_token( + "https://www.google.com/voice/m/x?m=call&n=18004664411&f=&v=6", + { + }, + ) print page if __name__ == "__main__": + logging.basicConfig(level=logging.DEBUG) args = sys.argv[1:] main(args[0], args[1], "")