class VimeoTestCase(unittest.TestCase): def setUp(self): self.suite = VimeoSuite() self.base_url = "http://vimeo.com/2" self.video = self.suite.get_video(self.base_url) @property def data_file_dir(self): if not hasattr(self, '_data_file_dir'): test_dir = os.path.abspath(os.path.dirname( os.path.dirname(__file__))) self._data_file_dir = os.path.join(test_dir, 'data', 'vimeo') return self._data_file_dir
def setUp(self): self.suite = VimeoSuite() self.base_url = "http://vimeo.com/2" self.video = self.suite.get_video(self.base_url)