server/test/unittest_session.py
branchstable
changeset 6340 470d8e828fda
parent 5424 8ecbcbff9777
child 7350 c2452cd57026
equal deleted inserted replaced
6339:bdc3dc94d744 6340:470d8e828fda
    41         return 'Int'
    41         return 'Int'
    42 
    42 
    43 class MakeDescriptionTC(TestCase):
    43 class MakeDescriptionTC(TestCase):
    44     def test_known_values(self):
    44     def test_known_values(self):
    45         solution = {'A': 'Int', 'B': 'CWUser'}
    45         solution = {'A': 'Int', 'B': 'CWUser'}
    46         self.assertEquals(_make_description((Function('max', 'A'), Variable('B')), {}, solution),
    46         self.assertEqual(_make_description((Function('max', 'A'), Variable('B')), {}, solution),
    47                           ['Int','CWUser'])
    47                           ['Int','CWUser'])
    48 
    48 
    49 class InternalSessionTC(CubicWebTC):
    49 class InternalSessionTC(CubicWebTC):
    50     def test_dbapi_query(self):
    50     def test_dbapi_query(self):
    51         session = self.repo.internal_session()
    51         session = self.repo.internal_session()