X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/22290f82670463d15f15f42cf1fe3ead76a6c08e..3b0b98465bc1862306b05bb8305a1abbf40ca310:/tests/test_iofile.py?ds=inline diff --git a/tests/test_iofile.py b/tests/test_iofile.py index 097a65a..a422887 100644 --- a/tests/test_iofile.py +++ b/tests/test_iofile.py @@ -1,14 +1,20 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Librarian, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import os -from StringIO import StringIO from tempfile import NamedTemporaryFile from nose.tools import * from librarian import IOFile + def test_iofile_from_string_reusable(): some_file = IOFile.from_string("test") some_file.get_file().read() assert_equal(some_file.get_file().read(), "test") + def test_iofile_from_filename_reusable(): temp = NamedTemporaryFile(delete=False) try: