Created
September 23, 2011 18:21
-
-
Save witsch/1238086 to your computer and use it in GitHub Desktop.
Previewing `browser.contents` in Pdb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 'preview' support for browser tests | |
alias preview import os, tempfile; out = tempfile.NamedTemporaryFile(mode='w', suffix='.html'); print >> out, browser.contents; out.flush(); _ = os.system("open '%s'" % out.name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment