[test] Use export module import instead of additional names import
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Oct 2016 19:06:14 +0200
changeset 1907 3eaf32ca3e95
parent 1896 46987d1729b3
child 1908 79c8835a856b
[test] Use export module import instead of additional names import
test/test_views.py
--- a/test/test_views.py	Tue Oct 18 17:07:02 2016 +0200
+++ b/test/test_views.py	Thu Oct 20 19:06:14 2016 +0200
@@ -24,7 +24,6 @@
 
 from cubes.seda.xsd2yams import RULE_TYPES
 from cubes.seda.views import export
-from cubes.seda.views.export import SEDAExportView, SEDANonSupportedExportView
 
 from testutils import create_transfer_to_bdo, create_archive_unit
 
@@ -229,15 +228,15 @@
             req.cnx.commit()
 
             exporter = self.vreg['views'].select('seda.export', req, entity=transfer)
-            self.assertEqual(exporter.__class__, SEDAExportView)
+            self.assertEqual(exporter.__class__, export.SEDAExportView)
 
             req.form['version'] = '0.2'
             exporter = self.vreg['views'].select('seda.export', req, entity=transfer)
-            self.assertEqual(exporter.__class__, SEDAExportView)
+            self.assertEqual(exporter.__class__, export.SEDAExportView)
 
             req.form['version'] = '3.0'
             exporter = self.vreg['views'].select('seda.export', req, entity=transfer)
-            self.assertEqual(exporter.__class__, SEDANonSupportedExportView)
+            self.assertEqual(exporter.__class__, export.SEDANonSupportedExportView)
 
             with req.cnx.security_enabled(write=False):
                 transfer.cw_set(compat_list=u'SEDA 2.0')
@@ -245,11 +244,11 @@
 
             req.form['version'] = '0.2'
             exporter = self.vreg['views'].select('seda.export', req, entity=transfer)
-            self.assertEqual(exporter.__class__, SEDANonSupportedExportView)
+            self.assertEqual(exporter.__class__, export.SEDANonSupportedExportView)
 
             req.form['version'] = '2.0'
             exporter = self.vreg['views'].select('seda.export', req, entity=transfer)
-            self.assertEqual(exporter.__class__, SEDAExportView)
+            self.assertEqual(exporter.__class__, export.SEDAExportView)
 
 
 class SimplifiedFormsTC(CubicWebTC):