/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
2052.3.1 by John Arbash Meinel
Add tests to cleanup the copyright of all source files
1
# Copyright (C) 2005 Canonical Ltd
1887.1.1 by Adeodato Simó
Do not separate paragraphs in the copyright statement with blank lines,
2
#
1530.2.1 by Robert Collins
Start tests for api usage.
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
1887.1.1 by Adeodato Simó
Do not separate paragraphs in the copyright statement with blank lines,
7
#
1530.2.1 by Robert Collins
Start tests for api usage.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
1887.1.1 by Adeodato Simó
Do not separate paragraphs in the copyright statement with blank lines,
12
#
1530.2.1 by Robert Collins
Start tests for api usage.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
4183.7.1 by Sabin Iacob
update FSF mailing address
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1530.2.1 by Robert Collins
Start tests for api usage.
16
6622.1.34 by Jelmer Vernooij
Rename brzlib => breezy.
17
"""Documentation for breezy.
1530.2.1 by Robert Collins
Start tests for api usage.
18
6622.1.34 by Jelmer Vernooij
Rename brzlib => breezy.
19
See breezy.doc.api for api documentation and in the future breezy.doc.man
1530.2.1 by Robert Collins
Start tests for api usage.
20
for man page generation.
21
"""
22
6379.6.7 by Jelmer Vernooij
Move importing from future until after doc string, otherwise the doc string will disappear.
23
from __future__ import absolute_import
24
3302.9.5 by Vincent Ladeuil
bzrlib.doc switch from test_suite() to load_tests().
25
6625.1.5 by Martin
Drop custom load_tests implementation and use unittest signature
26
def load_tests(loader, basic_tests, pattern):
3302.9.5 by Vincent Ladeuil
bzrlib.doc switch from test_suite() to load_tests().
27
    suite = loader.suiteClass()
28
    # add the tests for this module (obviously none so far)
29
    suite.addTests(basic_tests)
30
31
    testmod_names = [
6622.1.34 by Jelmer Vernooij
Rename brzlib => breezy.
32
        'breezy.doc.api',
3302.9.5 by Vincent Ladeuil
bzrlib.doc switch from test_suite() to load_tests().
33
        ]
34
3302.9.27 by Vincent Ladeuil
Fixed as per Ian's review.
35
    # add the tests for the sub modules
3302.9.5 by Vincent Ladeuil
bzrlib.doc switch from test_suite() to load_tests().
36
    suite.addTests(loader.loadTestsFromModuleNames(testmod_names))
37
38
    return suite