server/test/unittest_session.py
changeset 8542 7e264ce34cd4
parent 7970 83075d897943
child 8554 6e5d8512b07d
--- a/server/test/unittest_session.py	Tue Sep 11 12:44:33 2012 +0200
+++ b/server/test/unittest_session.py	Mon Sep 10 17:36:22 2012 +0200
@@ -17,33 +17,8 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 from __future__ import with_statement
 
-from logilab.common.testlib import TestCase, unittest_main, mock_object
-
 from cubicweb.devtools.testlib import CubicWebTC
-from cubicweb.server.session import _make_description, hooks_control
-
-class Variable:
-    def __init__(self, name):
-        self.name = name
-        self.children = []
-
-    def get_type(self, solution, args=None):
-        return solution[self.name]
-    def as_string(self):
-        return self.name
-
-class Function:
-    def __init__(self, name, varname):
-        self.name = name
-        self.children = [Variable(varname)]
-    def get_type(self, solution, args=None):
-        return 'Int'
-
-class MakeDescriptionTC(TestCase):
-    def test_known_values(self):
-        solution = {'A': 'Int', 'B': 'CWUser'}
-        self.assertEqual(_make_description((Function('max', 'A'), Variable('B')), {}, solution),
-                          ['Int','CWUser'])
+from cubicweb.server.session import hooks_control
 
 
 class InternalSessionTC(CubicWebTC):