Ejemplo n.º 1
0
 def setUri(self, uri):
     # FIXME support not local project
     if uri and not gst.uri_has_protocol(uri, "file"):
         # Note that this does *not* give the same result as quote_uri()
         self._uri = gst.uri_construct("file", uri)
     else:
         self._uri = uri
Ejemplo n.º 2
0
 def setUp(self):
     self.tmpfile = tempfile.NamedTemporaryFile()
     self.uri = unquote(gst.uri_construct("file", self.tmpfile.name))
     self.hash = hash_file(self.tmpfile.name)