Switch to unified view

a b/qiita_pet/test/test_logger.py
1
# -----------------------------------------------------------------------------
2
# Copyright (c) 2014--, The Qiita Development Team.
3
#
4
# Distributed under the terms of the BSD 3-clause License.
5
#
6
# The full license is in the file LICENSE, distributed with this software.
7
# -----------------------------------------------------------------------------
8
9
from unittest import main
10
from qiita_pet.test.tornado_test_base import TestHandlerBase
11
12
13
class TestLogEntryViewerHandler(TestHandlerBase):
14
    def test_get(self):
15
        response = self.get('/admin/error/')
16
        self.assertEqual(response.code, 403)
17
18
    def test_post(self):
19
        response = self.post('/admin/error/', {'numrecords': -5})
20
        self.assertEqual(response.code, 403)
21
22
        response = self.post('/admin/error/', {'numrecords': 20})
23
        self.assertEqual(response.code, 403)
24
25
26
if __name__ == "__main__":
27
    main()