[server/tests] fix tests
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 11 Jun 2012 09:22:11 +0200
changeset 8438 2c79c29193e7
parent 8437 c9ab72f0645d
child 8439 783a5df54dc7
[server/tests] fix tests
server/test/unittest_datafeed.py
server/test/unittest_ldapuser.py
--- a/server/test/unittest_datafeed.py	Fri Jun 08 16:47:07 2012 +0200
+++ b/server/test/unittest_datafeed.py	Mon Jun 11 09:22:11 2012 +0200
@@ -54,7 +54,7 @@
             stats = dfsource.pull_data(session, force=True)
             self.commit()
             # test import stats
-            self.assertEqual(sorted(stats.keys()), ['created', 'updated'])
+            self.assertEqual(sorted(stats.keys()), ['checked', 'created', 'updated'])
             self.assertEqual(len(stats['created']), 1)
             entity = self.execute('Card X').get_entity(0, 0)
             self.assertIn(entity.eid, stats['created'])
--- a/server/test/unittest_ldapuser.py	Fri Jun 08 16:47:07 2012 +0200
+++ b/server/test/unittest_ldapuser.py	Mon Jun 11 09:22:11 2012 +0200
@@ -16,6 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """cubicweb.server.sources.ldapusers unit and functional tests"""
+from __future__ import with_statement
 
 import os
 import shutil