def __json__(self): return dict(streams=self.streams, duration=self.duration, **Stream.__json__(self))
def test_base_stream(session): stream = Stream(session) assert stream.__json__() == { "type": "stream", } assert stream.json == """{"type": "stream"}"""
def test_base_stream(self): stream = Stream(self.session) self.assertEqual( {"type": "stream"}, stream.__json__() )
def __json__(self): return dict(substreams=self.substreams, subtitles=self.subtitles, options=self.options, **Stream.__json__(self))