def test_get_download_files(self): with patch('xmlrpclib.MultiCall', MultiCall) as mc: h = downloads.keys()[0] n = self.inst.conn.get_files(h) eq_(n, self.inst.get_download_files(h))
def test_get_download_name(self): h = downloads.keys()[0] n = downloads[h]['name'] eq_(n, self.inst.get_download_name(h))
def test_get_hashs(self): eq_(downloads.keys(), self.inst.get_hashs())
def test_get_download_files( self ): with patch( 'xmlrpclib.MultiCall', MultiCall ) as mc: h = downloads.keys()[0] n = self.inst.conn.get_files( h ) eq_( n, self.inst.get_download_files( h ) )
def test_get_download_name( self ): h = downloads.keys()[0] n = downloads[h]['name'] eq_( n, self.inst.get_download_name( h ) )
def test_get_hashs( self ): eq_( downloads.keys(), self.inst.get_hashs() )