# Path: restkit/contrib/webob_helper.py
# def wrap_exceptions():
#     """ wrap restkit exception to return WebBob exceptions"""
#     global webob_exceptions
#     if webob_exceptions: return
#     errors.ResourceError = WebobResourceError
#     webob_exceptions = True


import unittest
import webob.exc
from restkit.contrib.webob_helper import wrap_exceptions
        from restkit.errors import ResourceError
# -*- coding: utf-8 -
#
# This file is part of restkit released under the MIT license. 
# See the NOTICE for more information.




wrap_exceptions()

class ResourceTestCase(unittest.TestCase):
        
    def testWebobException(self):
       
        self.assert_(issubclass(ResourceError, 
                webob.exc.WSGIHTTPException) == True)
        

# Path: restkit/contrib/webob_helper.py
# def wrap_exceptions():
#     """ wrap restkit exception to return WebBob exceptions"""
#     global webob_exceptions
#     if webob_exceptions: return
#     errors.ResourceError = WebobResourceError
#     webob_exceptions = True


# Path: tests/006-test-webob.py
import unittest
import webob.exc
from restkit.contrib.webob_helper import wrap_exceptions
        from restkit.errors import ResourceError

# -*- coding: utf-8 -
#
# This file is part of restkit released under the MIT license. 
# See the NOTICE for more information.




wrap_exceptions()

class ResourceTestCase(unittest.TestCase):
        
    def testWebobException(self):
       
        self.assert_(issubclass(ResourceError, 
                webob.exc.WSGIHTTPException) == True)
        

if __name__ == '__main__':