/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/test_scenarios.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2010, 2016 Canonical Ltd
 
1
# Copyright (C) 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
17
17
 
18
18
"""Tests for generating multiple tests for scenarios."""
19
19
 
20
 
from breezy.tests import (
 
20
from bzrlib.tests import (
21
21
    TestCase,
22
22
    TestLoader,
23
23
    iter_suite_tests,
24
24
    multiply_tests,
25
25
    )
26
26
 
27
 
from breezy.tests.scenarios import (
 
27
from bzrlib.tests.scenarios import (
28
28
    load_tests_apply_scenarios,
29
29
    multiply_scenarios,
30
30
    multiply_tests_by_their_scenarios,
64
64
            self,
65
65
            vary_by_color(),
66
66
            suite)
67
 
        self.assertEqual(
 
67
        self.assertEquals(
68
68
            ['blue', 'green', 'red'],
69
69
            get_generated_test_attributes(suite, 'color'))
70
70
 
74
74
            vary_named_attribute('one'),
75
75
            vary_named_attribute('two'),
76
76
            )
77
 
        self.assertEqual(
 
77
        self.assertEquals(
78
78
            2*2,
79
79
            len(s),
80
80
            s)
86
86
        multiply_tests_by_their_scenarios(
87
87
            test_instance,
88
88
            suite)
89
 
        self.assertEqual(
 
89
        self.assertEquals(
90
90
            ['a', 'a', 'b', 'b'],
91
91
            get_generated_test_attributes(suite, 'value'))
92
92