/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Robert Collins
  • Date: 2007-10-15 05:23:29 UTC
  • mfrom: (2906 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2907.
  • Revision ID: robertc@robertcollins.net-20071015052329-z5458xq9q2kq72mv
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
2544
2544
    return suite
2545
2545
 
2546
2546
 
 
2547
def multiply_scenarios(scenarios_left, scenarios_right):
 
2548
    """Multiply two sets of scenarios.
 
2549
 
 
2550
    :returns: the cartesian product of the two sets of scenarios, that is
 
2551
        a scenario for every possible combination of a left scenario and a
 
2552
        right scenario.
 
2553
    """
 
2554
    return [
 
2555
        ('%s,%s' % (left_name, right_name),
 
2556
         dict(left_dict.items() + right_dict.items()))
 
2557
        for left_name, left_dict in scenarios_left
 
2558
        for right_name, right_dict in scenarios_right]
 
2559
 
 
2560
 
 
2561
 
2547
2562
def adapt_modules(mods_list, adapter, loader, suite):
2548
2563
    """Adapt the modules in mods_list using adapter and add to suite."""
2549
2564
    for test in iter_suite_tests(loader.loadTestsFromModuleNames(mods_list)):