def test_de_json_all(self, client):
        json_dict = {'codec': self.codec, 'bitrate_in_kbps': self.bitrate_in_kbps, 'gain': self.gain,
                     'preview': self.preview, 'download_info_url': self.download_info_url}
        download_info = DownloadInfo.de_json(json_dict, client)

        assert download_info.codec == self.codec
        assert download_info.bitrate_in_kbps == self.bitrate_in_kbps
        assert download_info.gain == self.gain
        assert download_info.preview == self.preview
        assert download_info.download_info_url == self.download_info_url
Exemplo n.º 2
0
 def test_de_json_none(self, client):
     assert DownloadInfo.de_json({}, client) is None