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))
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))
def test_site_data_no_app_author(self): with self.assertRaises(RuntimeError): homebase.site_data_dir(self.app_name, app_author=None)