##// END OF EJS Templates
Add tests for image handlers
Add tests for image handlers

File last commit:

r8250:c43b749e
r8250:c43b749e
Show More
writetofile.py
20 lines | 566 B | text/x-python | PythonLexer
#-----------------------------------------------------------------------------
# Copyright (C) 2012 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
"""
Copy data from input file to output file for testing.
"""
import sys
(inpath, outpath) = sys.argv[1:]
if inpath == '-':
infile = sys.stdin
else:
infile = open(inpath)
open(outpath, 'w+b').write(infile.read())