Factor out project_path to tidy

This commit is contained in:
Paul Makepeace 2011-04-28 17:57:53 +00:00
parent 3d5834c522
commit e9bc0a2a5a
1 changed files with 5 additions and 2 deletions

View File

@ -26,13 +26,16 @@ class RefineTestCase(unittest.TestCase):
project_file_options = {} project_file_options = {}
project = None project = None
# Section "2. Exploration using Facets": {1}, {2} # Section "2. Exploration using Facets": {1}, {2}
def project_path(self):
return os.path.join(PATH_TO_TEST_DATA, self.project_file)
def setUp(self): def setUp(self):
self.server = refine.RefineServer() self.server = refine.RefineServer()
self.refine = refine.Refine(self.server) self.refine = refine.Refine(self.server)
if self.project_file: if self.project_file:
self.project = self.refine.new_project( self.project = self.refine.new_project(
os.path.join(PATH_TO_TEST_DATA, self.project_file), self.project_path(), **self.project_file_options)
**self.project_file_options)
def tearDown(self): def tearDown(self):
if self.project: if self.project: