コード例 #1
0
ファイル: playlist.py プロジェクト: ImAvinashSharma/sip-py
 def __json__(self):
     return dict(streams=self.streams,
                 duration=self.duration,
                 **Stream.__json__(self))
コード例 #2
0
def test_base_stream(session):
    stream = Stream(session)
    assert stream.__json__() == {
        "type": "stream",
    }
    assert stream.json == """{"type": "stream"}"""
コード例 #3
0
 def test_base_stream(self):
     stream = Stream(self.session)
     self.assertEqual(
         {"type": "stream"},
         stream.__json__()
     )
コード例 #4
0
 def __json__(self):
     return dict(substreams=self.substreams,
                 subtitles=self.subtitles,
                 options=self.options,
                 **Stream.__json__(self))