summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/files/tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/files/tests.py b/tests/files/tests.py
index cfda70053f..9ee27b741f 100644
--- a/tests/files/tests.py
+++ b/tests/files/tests.py
@@ -233,6 +233,9 @@ class NoNameFileTestCase(unittest.TestCase):
def test_noname_file_get_size(self):
self.assertEqual(File(BytesIO(b"A file with no name")).size, 19)
+ def test_noname_bool(self):
+ self.assertTrue(bool(File(BytesIO(b"A file with no name"))))
+
class ContentFileTestCase(unittest.TestCase):
def test_content_file_default_name(self):