diff options
| author | jvoisin | 2018-12-16 21:47:25 +0100 |
|---|---|---|
| committer | jvoisin | 2018-12-16 21:47:25 +0100 |
| commit | d07b313e8959a514797f9f2d249d6cbf00a27573 (patch) | |
| tree | c76e54642953c3563c556fa8a8af8099daed7165 /tests.py | |
| parent | 5ce3db7e82b47ca3865f3909582309e9a0b44e2e (diff) | |
Supported types are now directly provided by mat2
Diffstat (limited to 'tests.py')
| -rw-r--r-- | tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -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) |
