summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorjvoisin2018-12-16 21:47:25 +0100
committerjvoisin2018-12-16 21:47:25 +0100
commitd07b313e8959a514797f9f2d249d6cbf00a27573 (patch)
treec76e54642953c3563c556fa8a8af8099daed7165 /tests.py
parent5ce3db7e82b47ca3865f3909582309e9a0b44e2e (diff)
Supported types are now directly provided by mat2
Diffstat (limited to 'tests.py')
-rw-r--r--tests.py5
1 files changed, 5 insertions, 0 deletions
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):
19 rv = self.app.get('/') 19 rv = self.app.get('/')
20 self.assertIn(b'mat2-web', rv.data) 20 self.assertIn(b'mat2-web', rv.data)
21 21
22 def test_check_mimetypes(self):
23 rv = self.app.get('/')
24 self.assertIn(b'application/zip', rv.data)
25 self.assertIn(b'audio/x-flac', rv.data)
26
22 def test_get_download_dangerous_file(self): 27 def test_get_download_dangerous_file(self):
23 rv = self.app.get('/download/\..\filename') 28 rv = self.app.get('/download/\..\filename')
24 self.assertEqual(rv.status_code, 302) 29 self.assertEqual(rv.status_code, 302)