def partition_suite(suite, classes, bins):
    for test in suite:
        if isinstance(test, unittest.TestSuite):
            partition_suite(test, classes, bins)
        else:
            for i in range(len(classes)):
                if isinstance(test, classes[i]):
                    bins[i].addTest(test)
                    break
            else:
                bins[-1].addTest(test)
A list-specific equality assertion.
dataset/ETHPy150Open Almad/django-sane-testing/djangosanetesting/runnercompat.py/partition_suite--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/utils/unittest/case.py/TestCase.assertListEqual