94 # self.assertEqual(vcconf['CW'], (2, 31, 2)) |
94 # self.assertEqual(vcconf['CW'], (2, 31, 2)) |
95 # self.assertRaises(KeyError, vcconf.__getitem__, 'CW_VERSION') |
95 # self.assertRaises(KeyError, vcconf.__getitem__, 'CW_VERSION') |
96 # self.assertRaises(KeyError, vcconf.__getitem__, 'CRM') |
96 # self.assertRaises(KeyError, vcconf.__getitem__, 'CRM') |
97 |
97 |
98 def test_expand_cubes(self): |
98 def test_expand_cubes(self): |
|
99 self.config.__class__.CUBES_PATH = [CUSTOM_CUBES_DIR] |
|
100 self.config.adjust_sys_path() |
99 self.assertEqual(self.config.expand_cubes(('email', 'blog')), |
101 self.assertEqual(self.config.expand_cubes(('email', 'blog')), |
100 ['email', 'blog', 'file']) |
102 ['email', 'blog', 'file']) |
101 |
103 |
102 def test_vregistry_path(self): |
104 def test_vregistry_path(self): |
|
105 self.config.__class__.CUBES_PATH = [CUSTOM_CUBES_DIR] |
|
106 self.config.adjust_sys_path() |
103 self.assertEqual([unabsolutize(p) for p in self.config.vregistry_path()], |
107 self.assertEqual([unabsolutize(p) for p in self.config.vregistry_path()], |
104 ['entities', 'web/views', 'sobjects', 'hooks', |
108 ['entities', 'web/views', 'sobjects', 'hooks', |
105 'file/entities.py', 'file/views', 'file/hooks.py', |
109 'file/entities', 'file/views.py', 'file/hooks', |
106 'email/entities.py', 'email/views', 'email/hooks.py', |
110 'email/entities.py', 'email/views', 'email/hooks.py', |
107 'test/data/entities.py', 'test/data/views.py']) |
111 'test/data/entities.py', 'test/data/views.py']) |
108 |
112 |
109 def test_cubes_path(self): |
113 def test_cubes_path(self): |
110 # make sure we don't import the email cube, but the stdlib email package |
114 # make sure we don't import the email cube, but the stdlib email package |