test/unittest_cwconfig.py
branchstable
changeset 6412 370357e68837
parent 6411 308f6d0e11ae
child 6631 26c303c3f1aa
equal deleted inserted replaced
6411:308f6d0e11ae 6412:370357e68837
   111                            'test/data/entities.py', 'test/data/views.py'])
   111                            'test/data/entities.py', 'test/data/views.py'])
   112 
   112 
   113     def test_cubes_path(self):
   113     def test_cubes_path(self):
   114         # 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
   115         import email
   115         import email
   116         self.assertNotEquals(dirname(email.__file__), self.config.CUBES_DIR)
   116         self.assertNotEqual(dirname(email.__file__), self.config.CUBES_DIR)
   117         self.config.__class__.CUBES_PATH = [CUSTOM_CUBES_DIR]
   117         self.config.__class__.CUBES_PATH = [CUSTOM_CUBES_DIR]
   118         self.assertEqual(self.config.cubes_search_path(),
   118         self.assertEqual(self.config.cubes_search_path(),
   119                           [CUSTOM_CUBES_DIR, self.config.CUBES_DIR])
   119                           [CUSTOM_CUBES_DIR, self.config.CUBES_DIR])
   120         self.config.__class__.CUBES_PATH = [CUSTOM_CUBES_DIR,
   120         self.config.__class__.CUBES_PATH = [CUSTOM_CUBES_DIR,
   121                                             self.config.CUBES_DIR, 'unexistant']
   121                                             self.config.CUBES_DIR, 'unexistant']