From d07b313e8959a514797f9f2d249d6cbf00a27573 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 16 Dec 2018 21:47:25 +0100 Subject: Supported types are now directly provided by mat2 --- tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests.py') diff --git a/tests.py b/tests.py index 456cb4d..8ce7d7e 100644 --- a/tests.py +++ b/tests.py @@ -19,6 +19,11 @@ class FlaskrTestCase(unittest.TestCase): rv = self.app.get('/') self.assertIn(b'mat2-web', rv.data) + def test_check_mimetypes(self): + rv = self.app.get('/') + self.assertIn(b'application/zip', rv.data) + self.assertIn(b'audio/x-flac', rv.data) + def test_get_download_dangerous_file(self): rv = self.app.get('/download/\..\filename') self.assertEqual(rv.status_code, 302) -- cgit v1.3