35 class MigrationToolsTC(TestCase): |
35 class MigrationToolsTC(TestCase): |
36 def setUp(self): |
36 def setUp(self): |
37 self.config = MigrTestConfig('data') |
37 self.config = MigrTestConfig('data') |
38 from yams.schema import Schema |
38 from yams.schema import Schema |
39 self.config.load_schema = lambda expand_cubes=False: Schema('test') |
39 self.config.load_schema = lambda expand_cubes=False: Schema('test') |
40 self.config.__class__.cubicweb_vobject_path = frozenset() |
40 self.config.__class__.cubicweb_appobject_path = frozenset() |
41 self.config.__class__.cube_vobject_path = frozenset() |
41 self.config.__class__.cube_appobject_path = frozenset() |
42 |
42 |
43 def test_filter_scripts_base(self): |
43 def test_filter_scripts_base(self): |
44 self.assertListEquals(filter_scripts(self.config, SMIGRDIR, (2,3,0), (2,4,0)), |
44 self.assertListEquals(filter_scripts(self.config, SMIGRDIR, (2,3,0), (2,4,0)), |
45 []) |
45 []) |
46 self.assertListEquals(filter_scripts(self.config, SMIGRDIR, (2,4,0), (2,5,0)), |
46 self.assertListEquals(filter_scripts(self.config, SMIGRDIR, (2,4,0), (2,5,0)), |