예제 #1
0
 def test_site_data_no_version_venv_no_create(self):
     expected = os.path.join(self.base_paths[self.platform]['site_data'][0],
                             self.app_name)
     self.assertEqual(
         expected,
         homebase.site_data_dir(self.app_name,
                                app_author=self.app_author,
                                version=None,
                                use_virtualenv=True,
                                create=False))
예제 #2
0
 def test_site_data_version_venv_no_create(self):
     version = '1.0'
     expected = os.path.join(self.base_paths[self.platform]['site_data'][0],
                             '{}_{}'.format(self.app_name, version))
     self.assertEqual(
         expected,
         homebase.site_data_dir(self.app_name,
                                app_author=self.app_author,
                                version=version,
                                use_virtualenv=True,
                                create=False))
예제 #3
0
 def test_site_data_no_app_author(self):
     with self.assertRaises(RuntimeError):
         homebase.site_data_dir(self.app_name, app_author=None)