Exemplo n.º 1
0
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
Exemplo n.º 2
0
 def setUp(self):
     self.suite = VimeoSuite()
     self.base_url = "http://vimeo.com/2"
     self.video = self.suite.get_video(self.base_url)