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

All Samples(12)  |  Call(11)  |  Derive(0)  |  Import(1)
lists comparator
    

src/l/i/ListComparator-0.1/listcomparator/tests/test_comparator.py   ListComparator(Download)
import unittest
from listcomparator.comparator import Comparator
 
 
class testComparator(unittest.TestCase):
 
    def testOldEmpty(self):
        old_list = []
        new_list = [1, 2, 3]
        comp = Comparator(old_list, new_list)
    def testNewEmpty(self):
        old_list = [1, 2, 3]
        new_list = []
        comp = Comparator(old_list, new_list)
        comp.check()
    def testBothEmpty(self):
        old_list = []
        new_list = []
        comp = Comparator(old_list, new_list)
        comp.check()
    def testEquals(self):
        old_list = [1, 2, 3]
        new_list = [1, 2, 3]
        comp = Comparator(old_list, new_list)
        comp.check()