File: 006-test-webob.py

package info (click to toggle)
python-restkit 4.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,908 kB
  • ctags: 841
  • sloc: python: 5,964; makefile: 84; xml: 8; sh: 5
file content (23 lines) | stat: -rw-r--r-- 540 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -
#
# This file is part of restkit released under the MIT license. 
# See the NOTICE for more information.

import unittest

import webob.exc
from restkit.contrib.webob_helper import wrap_exceptions


wrap_exceptions()

class ResourceTestCase(unittest.TestCase):
        
    def testWebobException(self):
       
        from restkit.errors import ResourceError
        self.assert_(issubclass(ResourceError, 
                webob.exc.WSGIHTTPException) == True)
        
if __name__ == '__main__':
    unittest.main()