#! -*- coding: utf-8 -*-
"""
@author: David Siroky (siroky@dasir.cz)
@license: MIT License (see LICENSE.txt or 
          U{http://www.opensource.org/licenses/mit-license.php})
"""

import unittest

##########################################################################
##########################################################################

class TestCase(unittest.TestCase):
    def shortDescription(self):
        return str(self)

    ######### missing asserts

    # py2.6 does not have assertNotIn
    if not hasattr(unittest.TestCase, "assertNotIn"):
        def assertNotIn(self, a, b):
            return self.assertTrue(a not in b, (a, b))

    # py2.6 does not have assertIn
    if not hasattr(unittest.TestCase, "assertIn"):
        def assertIn(self, a, b):
            return self.assertTrue(a in b, (a, b))

#! -*- coding: utf-8 -*-
"""
@author: David Siroky (siroky@dasir.cz)
@license: MIT License (see LICENSE.txt or 
          U{http://www.opensource.org/licenses/mit-license.php})
"""

import unittest

##########################################################################
##########################################################################

class TestCase(unittest.TestCase):
    def shortDescription(self):
        return str(self)

    ######### missing asserts

    # py2.6 does not have assertNotIn
    if not hasattr(unittest.TestCase, "assertNotIn"):
        def assertNotIn(self, a, b):
            return self.assertTrue(a not in b, (a, b))

    # py2.6 does not have assertIn
    if not hasattr(unittest.TestCase, "assertIn"):
        def assertIn(self, a, b):
            return self.assertTrue(a in b, (a, b))

    # py2.6 does not have assertIsInstance
    if not hasattr(unittest.TestCase, "assertIsInstance"):
        def assertIsInstance(self, a, b):
            return self.assertTrue(isinstance(a, b), (a, b))

fix missing py26 TestCase.assertIsInstance