diff options
Diffstat (limited to 'tests/support.py')
-rw-r--r-- | tests/support.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/support.py b/tests/support.py new file mode 100644 index 0000000..fe381f5 --- /dev/null +++ b/tests/support.py @@ -0,0 +1,9 @@ +import os + + +def open_file(filename): + ''' Load a file from the fixtures directory. ''' + path = 'fixtures/' + filename + if ('tests' in os.listdir('.')): + path = 'tests/' + path + return open(path, mode='rb') |