Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/z/i/ZimArchivist-HEAD/ZimArchivist/tests/test_archive.py   ZimArchivist(Download)
        self.assertEqual(result, valid)
 
from archive import get_unlinked_archive
 
class TestGetUnlinkedArchive(unittest.TestCase):
        zim_archives = ['archive1.html', 'archive2.html']
        valid = [] 
        result = get_unlinked_archive(zim_files, zim_archives) 
        self.assertEqual(result, valid)
 
        zim_archives = ['archive1.html', 'archive2.html']
        valid =  ['archive1', 'archive2']
        result = get_unlinked_archive(zim_files, zim_archives) 
        #result is sorted because the method does
        #not take care of the order
        zim_archives = ['archive1.html', 'archive2.html']
        valid =  ['archive2']
        result = get_unlinked_archive(zim_files, zim_archives) 
        self.assertEqual(result, valid)
 
        zim_archives = ['archive1.html', 'archive2.html']
        valid =  ['archive2']
        result = get_unlinked_archive(zim_files, zim_archives) 
        self.assertEqual(result, valid)