Skip to content

Commit

Permalink
added a create_test_file() method
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorynicholas committed Jan 7, 2013
1 parent 762d6e0 commit 10cd809
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_gae_tests.py
Expand Up @@ -180,3 +180,6 @@ def open_test_file(filename='test_file.jpg'):
size = len(data)
f.close()
return (StringIO(data), filename, size)

def create_test_file(data='testing', filename='test_file.jpg'):
return (StringIO(data), filename, len(data))

0 comments on commit 10cd809

Please sign in to comment.