import gst

from common import TestCase
import ges

class TimelineFileSource(TestCase):

    def testTimelineFileSource(self):
        src = ges.TimelineFileSource("blahblahblah")

        src.set_mute(True)
        src.set_max_duration(long(100))
        src.set_supported_formats("video")
        assert (src.get_supported_formats().value_nicks[0] == "video")
        src.set_is_image(True)
        assert (src.get_max_duration() == 100)
        assert (src.is_image() == True)
        assert (src.get_uri() == "blahblahblah")

import gst

from common import TestCase
import ges

class TimelineFileSource(TestCase):

    def testTimelineFileSource(self):
        src = ges.TimelineFileSource("file://blahblahblah")

        src.set_mute(True)
        src.set_max_duration(long(100))
        src.set_supported_formats("video")
        assert (src.get_supported_formats().value_nicks[0] == "video")
        src.set_is_image(True)
        assert (src.get_max_duration() == 100)
        assert (src.is_image() == True)
        assert (src.get_uri() == "file://blahblahblah")

Fix the timeline_file_source test suite
pyges: Fix the timeline_file_source test suite

Can't create a GESTimelineFileSource if you don't have the protocol in the uri

  import gst
  
  from common import TestCase
  import ges
  
  class TimelineFileSource(TestCase):
  
      def testTimelineFileSource(self):
-         src = ges.TimelineFileSource("blahblahblah")
+         src = ges.TimelineFileSource("file://blahblahblah")
  
          src.set_mute(True)
          src.set_max_duration(long(100))
          src.set_supported_formats("video")
          assert (src.get_supported_formats().value_nicks[0] == "video")
          src.set_is_image(True)
          assert (src.get_max_duration() == 100)
          assert (src.is_image() == True)
-         assert (src.get_uri() == "blahblahblah")
+         assert (src.get_uri() == "file://blahblahblah")
  
Fix the timeline_file_source test suite
## Code Before:
import gst

from common import TestCase
import ges

class TimelineFileSource(TestCase):

    def testTimelineFileSource(self):
        src = ges.TimelineFileSource("blahblahblah")

        src.set_mute(True)
        src.set_max_duration(long(100))
        src.set_supported_formats("video")
        assert (src.get_supported_formats().value_nicks[0] == "video")
        src.set_is_image(True)
        assert (src.get_max_duration() == 100)
        assert (src.is_image() == True)
        assert (src.get_uri() == "blahblahblah")

## Instruction:
Fix the timeline_file_source test suite
## Code After:
import gst

from common import TestCase
import ges

class TimelineFileSource(TestCase):

    def testTimelineFileSource(self):
        src = ges.TimelineFileSource("file://blahblahblah")

        src.set_mute(True)
        src.set_max_duration(long(100))
        src.set_supported_formats("video")
        assert (src.get_supported_formats().value_nicks[0] == "video")
        src.set_is_image(True)
        assert (src.get_max_duration() == 100)
        assert (src.is_image() == True)
        assert (src.get_uri() == "file://blahblahblah")
