Rev 3129: (robertc) Allow arbitrary parameteriZation of tests cleanly. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Wed Dec 19 09:11:58 GMT 2007
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 3129
revision-id:pqm at pqm.ubuntu.com-20071219091053-81xgp971m1pgmccf
parent: pqm at pqm.ubuntu.com-20071219070154-6d8alx13vc5ur6hs
parent: v.ladeuil+lp at free.fr-20071219081320-cjjkqg17ih7mxntt
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Wed 2007-12-19 09:10:53 +0000
message:
(robertc) Allow arbitrary parameteriZation of tests cleanly.
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/dirstate.py dirstate.py-20060728012006-d6mvoihjb3je9peu-1
bzrlib/remote.py remote.py-20060720103555-yeeg2x51vn0rbtdp-1
bzrlib/repofmt/pack_repo.py pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
bzrlib/tests/TestUtil.py TestUtil.py-20050824080200-5f70140a2d938694
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/repository_implementations/__init__.py __init__.py-20060131092037-9564957a7d4a841b
bzrlib/tests/repository_implementations/test_repository.py test_repository.py-20060131092128-ad07f494f5c9d26c
bzrlib/tests/test_msgeditor.py test_msgeditor.py-20051202041359-920315ec6011ee51
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 3128.1.2
revision-id:v.ladeuil+lp at free.fr-20071219081320-cjjkqg17ih7mxntt
parent: v.ladeuil+lp at free.fr-20071219080834-nr0ocqgk3ju1mb0p
parent: v.ladeuil+lp at free.fr-20071219081234-7fzqv9bidvsafp4s
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: trunk
timestamp: Wed 2007-12-19 09:13:20 +0100
message:
Further americaniZation
modified:
bzrlib/dirstate.py dirstate.py-20060728012006-d6mvoihjb3je9peu-1
bzrlib/remote.py remote.py-20060720103555-yeeg2x51vn0rbtdp-1
bzrlib/repofmt/pack_repo.py pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/repository_implementations/__init__.py __init__.py-20060131092037-9564957a7d4a841b
bzrlib/tests/repository_implementations/test_repository.py test_repository.py-20060131092128-ad07f494f5c9d26c
bzrlib/tests/test_msgeditor.py test_msgeditor.py-20051202041359-920315ec6011ee51
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 3128.2.3
revision-id:v.ladeuil+lp at free.fr-20071219081234-7fzqv9bidvsafp4s
parent: v.ladeuil+lp at free.fr-20071219080607-bhtk4b2jhmo88zvn
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: param_tests
timestamp: Wed 2007-12-19 09:12:34 +0100
message:
Since we are there s/parameteris.*/parameteriz&/.
modified:
bzrlib/dirstate.py dirstate.py-20060728012006-d6mvoihjb3je9peu-1
bzrlib/remote.py remote.py-20060720103555-yeeg2x51vn0rbtdp-1
bzrlib/repofmt/pack_repo.py pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/repository_implementations/__init__.py __init__.py-20060131092037-9564957a7d4a841b
bzrlib/tests/repository_implementations/test_repository.py test_repository.py-20060131092128-ad07f494f5c9d26c
bzrlib/tests/test_msgeditor.py test_msgeditor.py-20051202041359-920315ec6011ee51
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 3128.1.1
revision-id:v.ladeuil+lp at free.fr-20071219080834-nr0ocqgk3ju1mb0p
parent: pqm at pqm.ubuntu.com-20071219070154-6d8alx13vc5ur6hs
parent: v.ladeuil+lp at free.fr-20071219080607-bhtk4b2jhmo88zvn
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: trunk
timestamp: Wed 2007-12-19 09:08:34 +0100
message:
Allow arbitrary parameterisation of tests cleanly.
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/TestUtil.py TestUtil.py-20050824080200-5f70140a2d938694
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_msgeditor.py test_msgeditor.py-20051202041359-920315ec6011ee51
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 3128.2.2
revision-id:v.ladeuil+lp at free.fr-20071219080607-bhtk4b2jhmo88zvn
parent: v.ladeuil+lp at free.fr-20071219075244-qs0ye13pp2qb2n5l
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: param_tests
timestamp: Wed 2007-12-19 09:06:07 +0100
message:
Tweak as per review feedback: s/randomise.*/randomize&/, 0.92 -> 1.0.
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 3128.2.1
revision-id:v.ladeuil+lp at free.fr-20071219075244-qs0ye13pp2qb2n5l
parent: pqm at pqm.ubuntu.com-20071219070154-6d8alx13vc5ur6hs
parent: robertc at robertcollins.net-20071218073644-1npofqduijg8tkie
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: param_tests
timestamp: Wed 2007-12-19 08:52:44 +0100
message:
Merge Robert's bundle
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/TestUtil.py TestUtil.py-20050824080200-5f70140a2d938694
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_msgeditor.py test_msgeditor.py-20051202041359-920315ec6011ee51
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 2921.6.14
revision-id:robertc at robertcollins.net-20071218073644-1npofqduijg8tkie
parent: robertc at robertcollins.net-20071218072914-4u8lpcxet9umd1sg
committer: Robert Collins <robertc at robertcollins.net>
branch nick: delegate-test-suite
timestamp: Tue 2007-12-18 18:36:44 +1100
message:
Push the message editor test parameterisation down into the message editor
tests.
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_msgeditor.py test_msgeditor.py-20051202041359-920315ec6011ee51
------------------------------------------------------------
revno: 2921.6.13
revision-id:robertc at robertcollins.net-20071218072914-4u8lpcxet9umd1sg
parent: robertc at robertcollins.net-20071218053755-g7ksomxlee02swb4
committer: Robert Collins <robertc at robertcollins.net>
branch nick: delegate-test-suite
timestamp: Tue 2007-12-18 18:29:14 +1100
message:
* Modules can now customise their tests by defining a ``load_tests``
attribute. ``pydoc bzrlib.tests.TestUtil.TestLoader.loadTestsFromModule``
for the documentation on this attribute. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/TestUtil.py TestUtil.py-20050824080200-5f70140a2d938694
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 2921.6.12
revision-id:robertc at robertcollins.net-20071218053755-g7ksomxlee02swb4
parent: robertc at robertcollins.net-20071218051529-wkzo0o20tz4l7trk
parent: pqm at pqm.ubuntu.com-20071217234754-hzi1en08nilnvh6s
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Tue 2007-12-18 16:37:55 +1100
message:
Merge bzr.dev.
removed:
doc/en/user-reference/index.txt index.txt-20070830033353-ud9e03xsh24053oo-1
added:
bzrlib/help_topics/ help_topics-20071211013603-qz0sojhgxhiujm6a-1
bzrlib/help_topics/en/ bzrlibhelp-20071209214431-xzg3moksichjwyts-1
bzrlib/help_topics/en/authentication.txt authentication_conf.-20071104135035-glfv0ri355tyg1nf-1
bzrlib/lru_cache.py lru_cache.py-20070119165515-tlw203kuwh0id5gv-1
bzrlib/plugins/launchpad/account.py account.py-20071011033320-50y6vfftywf4yllw-1
bzrlib/plugins/launchpad/test_account.py test_account.py-20071011033320-50y6vfftywf4yllw-2
bzrlib/repofmt/pack_repo.py pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
bzrlib/switch.py switch.py-20071116011000-v5lnw7d2wkng9eux-1
bzrlib/tests/blackbox/test_check.py test_check.py-20071024054728-mn44rt3z5hnqcbke-1
bzrlib/tests/blackbox/test_switch.py test_switch.py-20071122111948-0c5en6uz92bwl76h-1
bzrlib/tests/ftp_server.py ftpserver.py-20071019102346-61jbvdkrr70igauv-1
bzrlib/tests/repository_implementations/test__generate_text_key_index.py test__generate_text_-20071114232121-00h9fd8qg8kjfa5k-1
bzrlib/tests/repository_implementations/test_find_text_key_references.py test_find_text_key_r-20071114033605-v73bakal8x77qlfi-1
bzrlib/tests/test_lru_cache.py test_lru_cache.py-20070119165535-hph6rk4h9rzy4180-1
bzrlib/tests/test_switch.py test_switch.py-20071116011000-v5lnw7d2wkng9eux-2
bzrlib/tests/tree_implementations/test_get_root_id.py test_get_root_id.py-20071026191509-a4conhr43f194avv-1
bzrlib/version_info_formats/format_custom.py format_custom.py-20071029100350-ajovqhbpb5khf6gu-1
doc/developers/network-protocol.txt networkprotocol.txt-20070903044232-woustorrjbmg5zol-1
doc/developers/packrepo.txt knitpack.txt-20071023074744-q0g5u8me8gk5zbtb-1
doc/en/quick-reference/quick-start-summary.pdf quickstartsummary.pd-20071207005239-it6xmdjml8nxvzgt-1
doc/en/quick-reference/quick-start-summary.png quickstartsummary.pn-20071203142852-hsiybkmh37q5owwe-1
doc/en/tutorials/ docentutorials-20071127235845-bm2lu60bvau1ptmh-1
doc/en/user-guide/adv_merging.txt adv_merging.txt-20071213070245-d7u7150lb2hhnvby-1
doc/en/user-guide/annotating_changes.txt annotating_changes.t-20071122141511-0knao2lklsdsvb1q-1
doc/en/user-guide/bazaar_workflows.txt bazaar_workflows.txt-20071114035000-q36a9h57ps06uvnl-1
doc/en/user-guide/best_practice_intro.txt best_practice_intro.-20071123154453-dk2mjhrg1vpjm5w2-1
doc/en/user-guide/branching_a_project.txt branching_a_project.-20071122141511-0knao2lklsdsvb1q-2
doc/en/user-guide/browsing_history.txt browsing_history.txt-20071121073725-0corxykv5irjal00-2
doc/en/user-guide/central_intro.txt central_intro.txt-20071123055134-k5x4ekduci2lbn36-1
doc/en/user-guide/configuring_bazaar.txt configuring_bazaar.t-20071128000722-ncxiua259xwbdbg7-1
doc/en/user-guide/controlling_registration.txt controlling_registra-20071121073725-0corxykv5irjal00-3
doc/en/user-guide/core_concepts.txt core_concepts.txt-20071114035000-q36a9h57ps06uvnl-2
doc/en/user-guide/distributed_intro.txt distributed_intro.tx-20071123154453-dk2mjhrg1vpjm5w2-2
doc/en/user-guide/entering_commands.txt using_bazaar.txt-20071114035000-q36a9h57ps06uvnl-6
doc/en/user-guide/getting_help.txt getting_help.txt-20071128000722-ncxiua259xwbdbg7-2
doc/en/user-guide/images/ images-20071114035000-q36a9h57ps06uvnl-3
doc/en/user-guide/images/workflows_centralized.png workflows_centralize-20071114035000-q36a9h57ps06uvnl-8
doc/en/user-guide/images/workflows_centralized.svg workflows_centralize-20071130043324-bhms0cgyphhq1b2x-1
doc/en/user-guide/images/workflows_gatekeeper.png workflows_gatekeeper-20071114035000-q36a9h57ps06uvnl-9
doc/en/user-guide/images/workflows_gatekeeper.svg workflows_gatekeeper-20071130043324-bhms0cgyphhq1b2x-2
doc/en/user-guide/images/workflows_localcommit.png workflows_localcommi-20071114035000-q36a9h57ps06uvnl-10
doc/en/user-guide/images/workflows_localcommit.svg workflows_localcommi-20071130043324-bhms0cgyphhq1b2x-3
doc/en/user-guide/images/workflows_peer.png workflows_peer.png-20071114035000-q36a9h57ps06uvnl-11
doc/en/user-guide/images/workflows_peer.svg workflows_peer.svg-20071130043324-bhms0cgyphhq1b2x-4
doc/en/user-guide/images/workflows_pqm.png workflows_pqm.png-20071114035000-q36a9h57ps06uvnl-12
doc/en/user-guide/images/workflows_pqm.svg workflows_pqm.svg-20071130043324-bhms0cgyphhq1b2x-5
doc/en/user-guide/images/workflows_shared.png workflows_shared.png-20071114035000-q36a9h57ps06uvnl-13
doc/en/user-guide/images/workflows_shared.svg workflows_shared.svg-20071130043324-bhms0cgyphhq1b2x-6
doc/en/user-guide/images/workflows_single.png workflows_single.png-20071114035000-q36a9h57ps06uvnl-14
doc/en/user-guide/images/workflows_single.svg workflows_single.svg-20071130043324-bhms0cgyphhq1b2x-7
doc/en/user-guide/installing_bazaar.txt installing_bazaar.tx-20071114035000-q36a9h57ps06uvnl-4
doc/en/user-guide/introducing_bazaar.txt introducing_bazaar.t-20071114035000-q36a9h57ps06uvnl-5
doc/en/user-guide/merging_changes.txt merging_changes.txt-20071122141511-0knao2lklsdsvb1q-3
doc/en/user-guide/organizing_branches.txt organizing_branches.-20071123154453-dk2mjhrg1vpjm5w2-3
doc/en/user-guide/partner_intro.txt partner_workflow.txt-20071122141511-0knao2lklsdsvb1q-4
doc/en/user-guide/publishing_a_branch.txt publishing_a_branch.-20071123055134-k5x4ekduci2lbn36-2
doc/en/user-guide/recording_changes.txt recording_changes.tx-20071121073725-0corxykv5irjal00-4
doc/en/user-guide/releasing_a_project.txt releasing_a_project.-20071121073725-0corxykv5irjal00-5
doc/en/user-guide/resolving_conflicts.txt resolving_conflicts.-20071122141511-0knao2lklsdsvb1q-5
doc/en/user-guide/reusing_a_checkout.txt reusing_a_checkout.t-20071123055134-k5x4ekduci2lbn36-3
doc/en/user-guide/reviewing_changes.txt reviewing_changes.tx-20071121073725-0corxykv5irjal00-6
doc/en/user-guide/sending_changes.txt sending_changes.txt-20071123154453-dk2mjhrg1vpjm5w2-4
doc/en/user-guide/solo_intro.txt solo_workflow.txt-20071121073725-0corxykv5irjal00-7
doc/en/user-guide/starting_a_project.txt starting_a_project.t-20071121073725-0corxykv5irjal00-8
doc/en/user-guide/undoing_mistakes.txt undoing_mistakes.txt-20071121092300-8fyacngt1w98e5mp-1
doc/en/user-guide/using_checkouts.txt using_checkouts.txt-20071123055134-k5x4ekduci2lbn36-4
doc/en/user-guide/using_gatekeepers.txt using_gatekeepers.tx-20071123154453-dk2mjhrg1vpjm5w2-5
doc/en/user-guide/working_offline_central.txt working_offline_cent-20071123055134-k5x4ekduci2lbn36-5
doc/en/user-guide/writing_a_plugin.txt writing_a_plugin.txt-20071114035000-q36a9h57ps06uvnl-7
doc/en/user-reference/readme.txt readme.txt-20071211133352-guencaey6fpesv4j-1
index.txt index.txt-20071121073725-0corxykv5irjal00-1
renamed:
bzrlib/help_topics.py => bzrlib/help_topics/__init__.py help_topics.py-20060920210027-rnim90q9e0bwxvy4-1
doc/en/user-guide/centralized_workflow.txt => doc/en/tutorials/centralized_workflow.txt centralized_workflow-20060830194948-kspf52565xvgrlil-1
doc/en/user-guide/configuration.txt => bzrlib/help_topics/en/configuration.txt configuration.txt-20060314161707-868350809502af01
doc/en/user-guide/conflicts.txt => bzrlib/help_topics/en/conflicts.txt conflicts.txt-20070723221841-ns3jvwxdb4okn6fk-1
doc/en/user-guide/tutorial.txt => doc/en/tutorials/tutorial.txt tutorial.txt-20050804190939-9dcbba2ef053bc84
doc/en/user-reference/hooks.txt => bzrlib/help_topics/en/hooks.txt hooks.txt-20070830033044-xxu2rced13f72dka-1
modified:
.bzrignore bzrignore-20050311232317-81f7b71efa2db11a
Makefile Makefile-20050805140406-d96e3498bb61c5bb
NEWS NEWS-20050323055033-4e00b5db738777ff
README README-20050309040720-8f368abf9f346b9d
bzr bzr.py-20050313053754-5485f144c7006fa6
bzrlib/__init__.py __init__.py-20050309040759-33e65acf91bbcd5d
bzrlib/annotate.py annotate.py-20050922133147-7c60541d2614f022
bzrlib/branch.py branch.py-20050309040759-e4baf4e0d046576e
bzrlib/bugtracker.py bugtracker.py-20070410073305-vu1vu1qosjurg8kb-1
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
bzrlib/bundle/serializer/v4.py v10.py-20070611062757-5ggj7k18s9dej0fr-1
bzrlib/bzrdir.py bzrdir.py-20060131065624-156dfea39c4387cb
bzrlib/check.py check.py-20050309040759-f3a679400c06bcc1
bzrlib/cmd_version_info.py __init__.py-20051228204928-697d01fdca29c99b
bzrlib/commit.py commit.py-20050511101309-79ec1a0168e0e825
bzrlib/config.py config.py-20051011043216-070c74f4e9e338e8
bzrlib/conflicts.py conflicts.py-20051001061850-78ef952ba63d2b42
bzrlib/debug.py debug.py-20061102062349-vdhrw9qdpck8cl35-1
bzrlib/delta.py delta.py-20050729221636-54cf14ef94783d0a
bzrlib/diff.py diff.py-20050309040759-26944fbbf2ebbf36
bzrlib/dirstate.py dirstate.py-20060728012006-d6mvoihjb3je9peu-1
bzrlib/errors.py errors.py-20050309040759-20512168c4e14fbd
bzrlib/export/__init__.py __init__.py-20051114235828-1ba62cb4062304e6
bzrlib/fetch.py fetch.py-20050818234941-26fea6105696365d
bzrlib/graph.py graph_walker.py-20070525030359-y852guab65d4wtn0-1
bzrlib/index.py index.py-20070712131115-lolkarso50vjr64s-1
bzrlib/info.py info.py-20050323235939-6bbfe7d9700b0b9b
bzrlib/inventory.py inventory.py-20050309040759-6648b84ca2005b37
bzrlib/knit.py knit.py-20051212171256-f056ac8f0fbe1bd9
bzrlib/lazy_import.py lazy_import.py-20060910203832-f77c54gf3n232za0-1
bzrlib/lockable_files.py control_files.py-20051111201905-bb88546e799d669f
bzrlib/log.py log.py-20050505065812-c40ce11702fe5fb1
bzrlib/mail_client.py mail_client.py-20070809192806-vuxt3t19srtpjpdn-1
bzrlib/memorytree.py memorytree.py-20060906023413-4wlkalbdpsxi2r4y-1
bzrlib/merge.py merge.py-20050513021216-953b65a438527106
bzrlib/merge_directive.py merge_directive.py-20070228184838-ja62280spt1g7f4x-1
bzrlib/msgeditor.py msgeditor.py-20050901111708-ef6d8de98f5d8f2f
bzrlib/mutabletree.py mutabletree.py-20060906023413-4wlkalbdpsxi2r4y-2
bzrlib/osutils.py osutils.py-20050309040759-eeaff12fbf77ac86
bzrlib/pack.py container.py-20070607160755-tr8zc26q18rn0jnb-1
bzrlib/plugin.py plugin.py-20050622060424-829b654519533d69
bzrlib/plugins/launchpad/__init__.py __init__.py-20060315182712-2d5feebd2a1032dc
bzrlib/plugins/launchpad/lp_indirect.py lp_indirect.py-20070126012204-de5rugwlt22c7u7e-1
bzrlib/plugins/launchpad/lp_registration.py lp_registration.py-20060315190948-daa617eafe3a8d48
bzrlib/plugins/launchpad/test_lp_indirect.py test_lp_indirect.py-20070126002743-oyle362tzv9cd8mi-1
bzrlib/plugins/launchpad/test_register.py test_register.py-20060315182712-40f5dda945c829a8
bzrlib/progress.py progress.py-20050610070202-df9faaab791964c0
bzrlib/reconcile.py reweave_inventory.py-20051108164726-1e5e0934febac06e
bzrlib/reconfigure.py reconfigure.py-20070908040425-6ykgo7escxhyrg9p-1
bzrlib/remote.py remote.py-20060720103555-yeeg2x51vn0rbtdp-1
bzrlib/repofmt/knitrepo.py knitrepo.py-20070206081537-pyy4a00xdas0j4pf-1
bzrlib/repofmt/weaverepo.py presplitout.py-20070125045333-wfav3tsh73oxu3zk-1
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
bzrlib/revision.py revision.py-20050309040759-e77802c08f3999d5
bzrlib/revisionspec.py revisionspec.py-20050907152633-17567659fd5c0ddb
bzrlib/sign_my_commits.py sign_my_commits.py-20060215152201-5a6363365180e671
bzrlib/smart/__init__.py __init__.py-20061101100249-8jwwl0d3jr080zim-1
bzrlib/smart/branch.py branch.py-20061124031907-mzh3pla28r83r97f-1
bzrlib/smart/medium.py medium.py-20061103051856-rgu2huy59fkz902q-1
bzrlib/smart/protocol.py protocol.py-20061108035435-ot0lstk2590yqhzr-1
bzrlib/smart/repository.py repository.py-20061128022038-vr5wy5bubyb8xttk-1
bzrlib/smart/request.py request.py-20061108095550-gunadhxmzkdjfeek-1
bzrlib/smtp_connection.py smtp_connection.py-20070618204456-nu6wag1ste4biuk2-1
bzrlib/symbol_versioning.py symbol_versioning.py-20060105104851-9ecf8af605d15a80
bzrlib/tests/HTTPTestUtil.py HTTPTestUtil.py-20050914180604-247d3aafb7a43343
bzrlib/tests/HttpServer.py httpserver.py-20061012142527-m1yxdj1xazsf8d7s-1
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/blackbox/__init__.py __init__.py-20051128053524-eba30d8255e08dc3
bzrlib/tests/blackbox/test_bound_branches.py test_bound_branches.py-20051109215527-2373188ad566c205
bzrlib/tests/blackbox/test_cat.py test_cat.py-20051201162916-f0937e4e19ea24b3
bzrlib/tests/blackbox/test_commit.py test_commit.py-20060212094538-ae88fc861d969db0
bzrlib/tests/blackbox/test_debug.py test_debug.py-20061026142942-q76cgg41785b3mdk-1
bzrlib/tests/blackbox/test_diff.py test_diff.py-20060110203741-aa99ac93e633d971
bzrlib/tests/blackbox/test_exceptions.py test_exceptions.py-20060604211237-yi2cxg0ose3xk4id-1
bzrlib/tests/blackbox/test_ignore.py test_ignore.py-20060703063225-4tm8dc2pa7wwg2t3-1
bzrlib/tests/blackbox/test_info.py test_info.py-20060215045507-bbdd2d34efab9e0a
bzrlib/tests/blackbox/test_log.py test_log.py-20060112090212-78f6ea560c868e24
bzrlib/tests/blackbox/test_merge.py test_merge.py-20060323225809-9bc0459c19917f41
bzrlib/tests/blackbox/test_merge_directive.py test_merge_directive-20070302012039-zh7uhy39biairtn0-1
bzrlib/tests/blackbox/test_mv.py test_mv.py-20060705114902-33tkxz0o9cdshemo-1
bzrlib/tests/blackbox/test_non_ascii.py test_non_ascii.py-20060105214030-68010be784a5d854
bzrlib/tests/blackbox/test_outside_wt.py test_outside_wt.py-20060116200058-98edd33e7db8bdde
bzrlib/tests/blackbox/test_push.py test_push.py-20060329002750-929af230d5d22663
bzrlib/tests/blackbox/test_reconcile.py test_fix.py-20060223013051-9a188e15a5ee9451
bzrlib/tests/blackbox/test_reconfigure.py test_reconfigure.py-20070908173426-khfo5fi2rgzgtwj3-1
bzrlib/tests/blackbox/test_remove.py test_remove.py-20060530011439-fika5rm84lon0goe-1
bzrlib/tests/blackbox/test_send.py test_bundle.py-20060616222707-c21c8b7ea5ef57b1
bzrlib/tests/blackbox/test_tags.py test_tags.py-20070116132048-5h4qak2cm22jlb9e-1
bzrlib/tests/blackbox/test_uncommit.py test_uncommit.py-20051027212835-84944b63adae51be
bzrlib/tests/blackbox/test_update.py test_update.py-20060212125639-c4dad1a5c56d5919
bzrlib/tests/blackbox/test_versioning.py versioning.py-20050622071821-3ddf5e2e5e93c602
bzrlib/tests/blackbox/test_whoami.py test_whoami.py-20060629025641-8h3m2ch7kutqx7ug-1
bzrlib/tests/branch_implementations/test_branch.py testbranch.py-20050711070244-121d632bc37d7253
bzrlib/tests/branch_implementations/test_break_lock.py test_break_lock.py-20060504111902-9aae411dbe9aadd2
bzrlib/tests/branch_implementations/test_create_checkout.py test_create_checkout-20070322193723-n2wkp1g03r0404di-1
bzrlib/tests/branch_implementations/test_get_revision_id_to_revno_map.py test_get_revision_id-20070417211641-6kcoj1c704gqqopn-1
bzrlib/tests/branch_implementations/test_locking.py test_locking.py-20060707151933-tav3o2hpibwi53u4-4
bzrlib/tests/branch_implementations/test_pull.py test_pull.py-20060410103942-83c35b26657414fc
bzrlib/tests/branch_implementations/test_push.py test_push.py-20070130153159-fhfap8uoifevg30j-1
bzrlib/tests/branch_implementations/test_sprout.py test_sprout.py-20070521151739-b8t8p7axw1h966ws-1
bzrlib/tests/bzrdir_implementations/test_bzrdir.py test_bzrdir.py-20060131065642-0ebeca5e30e30866
bzrlib/tests/commands/test_checkout.py test_checkout.py-20070525151718-vm7ligd5px5dtmda-1
bzrlib/tests/interrepository_implementations/__init__.py __init__.py-20060220054744-baf49a1f88f17b1a
bzrlib/tests/interrepository_implementations/test_interrepository.py test_interrepository.py-20060220061411-1ec13fa99e5e3eee
bzrlib/tests/intertree_implementations/test_compare.py test_compare.py-20060724101752-09ysswo1a92uqyoz-2
bzrlib/tests/inventory_implementations/basics.py basics.py-20070903044446-kdjwbiu1p1zi9phs-1
bzrlib/tests/repository_implementations/__init__.py __init__.py-20060131092037-9564957a7d4a841b
bzrlib/tests/repository_implementations/helpers.py helpers.py-20070924032407-m460yl9j5gu5ju85-2
bzrlib/tests/repository_implementations/test_check.py test_check.py-20070824124512-38g4d135gcqxo4zb-1
bzrlib/tests/repository_implementations/test_check_reconcile.py test_broken.py-20070928125406-62236394w0jpbpd6-2
bzrlib/tests/repository_implementations/test_commit_builder.py test_commit_builder.py-20060606110838-76e3ra5slucqus81-1
bzrlib/tests/repository_implementations/test_fetch.py test_fetch.py-20070814052151-5cxha9slx4c93uog-1
bzrlib/tests/repository_implementations/test_fileid_involved.py test_file_involved.py-20051215205901-728a172d1014daaa
bzrlib/tests/repository_implementations/test_reconcile.py test_reconcile.py-20060223022332-572ef70a3288e369
bzrlib/tests/repository_implementations/test_repository.py test_repository.py-20060131092128-ad07f494f5c9d26c
bzrlib/tests/repository_implementations/test_write_group.py test_write_group.py-20070716105516-89n34xtogq5frn0m-1
bzrlib/tests/test_ancestry.py test_ancestry.py-20050913023709-69768e94848312c6
bzrlib/tests/test_annotate.py test_annotate.py-20061213215015-sttc9agsxomls7q0-1
bzrlib/tests/test_bad_files.py test_bad_files.py-20050918155938-c76a2295c8ab9503
bzrlib/tests/test_bugtracker.py test_bugtracker.py-20070410073305-vu1vu1qosjurg8kb-2
bzrlib/tests/test_bundle.py test.py-20050630184834-092aa401ab9f039c
bzrlib/tests/test_bzrdir.py test_bzrdir.py-20060131065654-deba40eef51cf220
bzrlib/tests/test_commit.py test_commit.py-20050914060732-279f057f8c295434
bzrlib/tests/test_commit_merge.py test_commit_merge.py-20050920084723-819eeeff77907bc5
bzrlib/tests/test_config.py testconfig.py-20051011041908-742d0c15d8d8c8eb
bzrlib/tests/test_conflicts.py test_conflicts.py-20051006031059-e2dad9bbeaa5891f
bzrlib/tests/test_diff.py testdiff.py-20050727164403-d1a3496ebb12e339
bzrlib/tests/test_dirstate.py test_dirstate.py-20060728012006-d6mvoihjb3je9peu-2
bzrlib/tests/test_errors.py test_errors.py-20060210110251-41aba2deddf936a8
bzrlib/tests/test_fetch.py testfetch.py-20050825090644-f73e07e7dfb1765a
bzrlib/tests/test_ftp_transport.py test_aftp_transport.-20060823221619-98mwjzxtwtkt527k-1
bzrlib/tests/test_graph.py test_graph_walker.py-20070525030405-enq4r60hhi9xrujc-1
bzrlib/tests/test_hashcache.py testhashcache.py-20050706091800-0288ab2659338981
bzrlib/tests/test_help.py test_help.py-20070419045354-6q6rq15j9e2n5fna-1
bzrlib/tests/test_http.py testhttp.py-20051018020158-b2eef6e867c514d9
bzrlib/tests/test_http_response.py test_http_response.py-20060628233143-950b2a482a32505d
bzrlib/tests/test_info.py test_info.py-20070320150933-m0xxm1g7xi9v6noe-1
bzrlib/tests/test_knit.py test_knit.py-20051212171302-95d4c00dd5f11f2b
bzrlib/tests/test_lazy_import.py test_lazy_import.py-20060910203832-f77c54gf3n232za0-2
bzrlib/tests/test_lockable_files.py test_lockable_files.py-20051225183927-365c7fd99591caf1
bzrlib/tests/test_log.py testlog.py-20050728115707-1a514809d7d49309
bzrlib/tests/test_mail_client.py test_mail_client.py-20070809192806-vuxt3t19srtpjpdn-2
bzrlib/tests/test_memorytree.py test_memorytree.py-20060906023413-4wlkalbdpsxi2r4y-3
bzrlib/tests/test_merge.py testmerge.py-20050905070950-c1b5aa49ff911024
bzrlib/tests/test_merge_core.py test_merge_core.py-20050824132511-eb99b23a0eec641b
bzrlib/tests/test_merge_directive.py test_merge_directive-20070228184838-ja62280spt1g7f4x-2
bzrlib/tests/test_msgeditor.py test_msgeditor.py-20051202041359-920315ec6011ee51
bzrlib/tests/test_osutils.py test_osutils.py-20051201224856-e48ee24c12182989
bzrlib/tests/test_osutils_encodings.py test_osutils_encodin-20061226013130-kkp732tpt3lm91vv-1
bzrlib/tests/test_pack.py test_container.py-20070607160755-tr8zc26q18rn0jnb-2
bzrlib/tests/test_plugins.py plugins.py-20050622075746-32002b55e5e943e9
bzrlib/tests/test_reconfigure.py test_reconfigure.py-20070908040425-6ykgo7escxhyrg9p-2
bzrlib/tests/test_repository.py test_repository.py-20060131075918-65c555b881612f4d
bzrlib/tests/test_revert.py test_revert.py-20060828180832-fqb1v6ecpyvnlitj-1
bzrlib/tests/test_revision.py testrevision.py-20050804210559-46f5e1eb67b01289
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
bzrlib/tests/test_smart.py test_smart.py-20061122024551-ol0l0o0oofsu9b3t-2
bzrlib/tests/test_smart_transport.py test_ssh_transport.py-20060608202016-c25gvf1ob7ypbus6-2
bzrlib/tests/test_smtp_connection.py test_smtp_connection-20070618204509-wuyxc0r0ztrecv7e-1
bzrlib/tests/test_ssh_transport.py test_ssh_transport.p-20070105153201-f7iq2bosvgjbdgc3-1
bzrlib/tests/test_testament.py testtestament.py-20051011100429-5df1657310caa929
bzrlib/tests/test_transform.py test_transaction.py-20060105172520-b3ffb3946550e6c4
bzrlib/tests/test_transport.py testtransport.py-20050718175618-e5cdb99f4555ddce
bzrlib/tests/test_transport_implementations.py test_transport_implementations.py-20051227111451-f97c5c7d5c49fce7
bzrlib/tests/test_upgrade.py test_upgrade.py-20051004040251-555fe1d2bae1bc71
bzrlib/tests/test_version_info.py test_version_info.py-20051228204928-2c364e30b702b41b
bzrlib/tests/test_versionedfile.py test_versionedfile.py-20060222045249-db45c9ed14a1c2e5
bzrlib/tests/test_workingtree.py testworkingtree.py-20051004024258-b88d0fe8f101d468
bzrlib/tests/test_xml.py test_xml.py-20050905091053-80b45588931a9b35
bzrlib/tests/tree_implementations/__init__.py __init__.py-20060717075546-420s7b0bj9hzeowi-2
bzrlib/tests/tree_implementations/test_get_symlink_target.py test_get_symlink_tar-20070225165554-ickod3w3t7u0zzqh-1
bzrlib/tests/tree_implementations/test_inv.py test_inv.py-20070312023226-0cdvk5uwhutis9vg-1
bzrlib/tests/tree_implementations/test_test_trees.py test_tree_trees.py-20060720091921-3nwi5h21lf06vf5p-1
bzrlib/tests/workingtree_implementations/test_break_lock.py test_break_lock.py-20060504115740-233e245df546fd42
bzrlib/tests/workingtree_implementations/test_commit.py test_commit.py-20060421013633-1610ec2331c8190f
bzrlib/tests/workingtree_implementations/test_parents.py test_set_parents.py-20060807231740-yicmnlci1mj8smu1-1
bzrlib/tests/workingtree_implementations/test_pull.py test_pull.py-20060222044334-43594dd8e143b708
bzrlib/tests/workingtree_implementations/test_remove.py test_remove.py-20070413183901-rvnp85rtc0q0sclp-1
bzrlib/tests/workingtree_implementations/test_unversion.py test_unversion.py-20060907074408-bygh2y28jz8u0cg7-1
bzrlib/tests/workingtree_implementations/test_walkdirs.py test_walkdirs.py-20060731045042-ch366w6dve2m7ro9-1
bzrlib/tests/workingtree_implementations/test_workingtree.py test_workingtree.py-20060203003124-817757d3e31444fb
bzrlib/trace.py trace.py-20050309040759-c8ed824bdcd4748a
bzrlib/transform.py transform.py-20060105172343-dd99e54394d91687
bzrlib/transport/__init__.py transport.py-20050711165921-4978aa7ce1285ad5
bzrlib/transport/ftp.py ftp.py-20051116161804-58dc9506548c2a53
bzrlib/transport/http/__init__.py http_transport.py-20050711212304-506c5fd1059ace96
bzrlib/transport/http/_pycurl.py pycurlhttp.py-20060110060940-4e2a705911af77a6
bzrlib/transport/http/_urllib.py _urlgrabber.py-20060113083826-0bbf7d992fbf090c
bzrlib/transport/http/_urllib2_wrappers.py _urllib2_wrappers.py-20060913231729-ha9ugi48ktx481ao-1
bzrlib/transport/http/response.py _response.py-20060613154423-a2ci7hd4iw5c7fnt-1
bzrlib/transport/local.py local_transport.py-20050711165921-9b1f142bfe480c24
bzrlib/transport/memory.py memory.py-20051016101338-cd008dbdf69f04fc
bzrlib/transport/remote.py ssh.py-20060608202016-c25gvf1ob7ypbus6-1
bzrlib/transport/sftp.py sftp.py-20051019050329-ab48ce71b7e32dfe
bzrlib/transport/ssh.py ssh.py-20060824042150-0s9787kng6zv1nwq-1
bzrlib/tree.py tree.py-20050309040759-9d5f2496be663e77
bzrlib/util/configobj/configobj.py configobj.py-20051018184548-06992a2246425e3e
bzrlib/util/configobj/docs/BSD-LICENSE.txt BSDLICENSE.txt-20051018184548-29b89ff3102657f5
bzrlib/util/configobj/docs/configobj.txt configobj.txt-20051018184548-4949b5f17e6a19c7
bzrlib/util/configobj/docs/validate.txt validate.txt-20051018184548-9e0e5ad913e258f5
bzrlib/version_info_formats/__init__.py generate_version_info.py-20051228204928-8358edabcddcd97e
bzrlib/versionedfile.py versionedfile.py-20060222045106-5039c71ee3b65490
bzrlib/weave.py knit.py-20050627021749-759c29984154256b
bzrlib/win32utils.py win32console.py-20051021033308-123c6c929d04973d
bzrlib/workingtree.py workingtree.py-20050511021032-29b6ec0a681e02e3
bzrlib/workingtree_4.py workingtree_4.py-20070208044105-5fgpc5j3ljlh5q6c-1
bzrlib/xml5.py xml5.py-20050907032657-aac8f960815b66b1
doc/developers/HACKING.txt HACKING-20050805200004-2a5dc975d870f78c
doc/developers/authentication-ring.txt authring.txt-20070718200437-q5tdik0ne6lor86d-1
doc/developers/bundles.txt bundles.txt-20070621030528-qkjnugd7iyud6ow3-1
doc/developers/index.txt index.txt-20070508041241-qznziunkg0nffhiw-1
doc/developers/performance-contributing.txt performancecontribut-20070621063612-ac4zhhagjzkr21qp-1
doc/developers/repository.txt repository.txt-20070709152006-xkhlek456eclha4u-1
doc/en/mini-tutorial/index.txt index.txt-20070813141352-2u64ooqzo0or4hss-2
doc/en/quick-reference/quick-start-summary.svg quickstartsummary.sv-20070813143223-5i7bgw7w8s7l3ae2-3
doc/en/user-guide/bug_trackers.txt bug_trackers.txt-20070713223459-khxdlcudraii95uv-1
doc/en/user-guide/hooks.txt hooks.txt-20070829200551-7nr6e5a1io6x78uf-1
doc/en/user-guide/http_smart_server.txt fastcgi.txt-20061005091552-rz8pva0olkxv0sd8-3
doc/en/user-guide/index.txt index.txt-20060622101119-tgwtdci8z769bjb9-2
doc/en/user-guide/plugins.txt plugins.txt-20060314145616-525099a747f3ffdd
doc/en/user-guide/server.txt server.txt-20060913044801-h939fvbwzz39gf7g-1
doc/en/user-guide/setting_up_email.txt setting_up_email.txt-20060314161707-fd242c8944346173
doc/en/user-guide/shared_repository_layouts.txt shared_repository_la-20070502152030-bagewuqs18ns24o7-1
doc/en/user-guide/specifying_revisions.txt specifying_revisions.txt-20060314161707-19deb139101bea33
doc/en/user-guide/using_aliases.txt using_aliases.txt-20060314161707-c21d27fa2939e039
doc/en/user-guide/version_info.txt version_info.txt-20060921215543-gju6o5xdic8w25np-1
doc/index.txt index.txt-20070813101924-07gd9i9d2jt124bf-1
setup.py setup.py-20050314065409-02f8a0a6e3f9bc70
tools/doc_generate/autodoc_rstx.py autodoc_rstx.py-20060420024836-3e0d4a526452193c
tools/rst2html.py rst2html.py-20060817120932-gn177u8v0008txhu-1
tools/win32/bzr-win32-bdist-postinstall.py bzrwin32bdistpostinstall.py-20060629085133-098bsfj3va8jc0ql-1
tools/win32/bzr.iss.cog bzr.iss.cog-20060622100836-b3yup582rt3y0nvm-5
bzrlib/help_topics/__init__.py help_topics.py-20060920210027-rnim90q9e0bwxvy4-1
bzrlib/help_topics/en/configuration.txt configuration.txt-20060314161707-868350809502af01
bzrlib/help_topics/en/conflicts.txt conflicts.txt-20070723221841-ns3jvwxdb4okn6fk-1
doc/en/tutorials/tutorial.txt tutorial.txt-20050804190939-9dcbba2ef053bc84
bzrlib/help_topics/en/hooks.txt hooks.txt-20070830033044-xxu2rced13f72dka-1
------------------------------------------------------------
revno: 2921.6.11
revision-id:robertc at robertcollins.net-20071218051529-wkzo0o20tz4l7trk
parent: robertc at robertcollins.net-20071022190915-93rgrb7wvkh9hpi3
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Tue 2007-12-18 16:15:29 +1100
message:
Last typo.
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
------------------------------------------------------------
revno: 2921.6.10
revision-id:robertc at robertcollins.net-20071022190915-93rgrb7wvkh9hpi3
parent: robertc at robertcollins.net-20071021102231-yvyauo1uy0oxt04i
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Tue 2007-10-23 05:09:15 +1000
message:
Typo caught by John.
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
------------------------------------------------------------
revno: 2921.6.9
revision-id:robertc at robertcollins.net-20071021102231-yvyauo1uy0oxt04i
parent: robertc at robertcollins.net-20071021021936-jlz4q3xd60fc84z8
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 20:22:31 +1000
message:
* New helper function ``bzrlib.tests.condition_id_re`` which helps
filter tests based on a regular expression search on the tests id.
(Robert Collins)
* New helper function ``bzrlib.tests.exclude_suite_by_condition`` which
generalises the ``exclude_suite_by_re`` function. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 2921.6.8
revision-id:robertc at robertcollins.net-20071021021936-jlz4q3xd60fc84z8
parent: robertc at robertcollins.net-20071021020852-1o0jfwqhyb04fp0f
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 12:19:36 +1000
message:
* New helper function ``bzrlib.tests.condition_isinstance`` which helps
filter tests based on class. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 2921.6.7
revision-id:robertc at robertcollins.net-20071021020852-1o0jfwqhyb04fp0f
parent: robertc at robertcollins.net-20071021002645-gyplhevz6aghcrbw
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 12:08:52 +1000
message:
* New helper function ``bzrlib.tests.filter_suite_by_condition`` which
generalises the ``filter_suite_by_re`` function. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 2921.6.6
revision-id:robertc at robertcollins.net-20071021002645-gyplhevz6aghcrbw
parent: robertc at robertcollins.net-20071020234331-djq3v6djt8dptt22
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 10:26:45 +1000
message:
* The ``exclude_pattern`` and ``random_order`` parameters to the function
``bzrlib.tests.filter_suite_by_re`` have been deprecated. (Robert Collins)
* The method ``bzrlib.tests.sort_suite_by_re`` has been deprecated. It is
replaced by the new helper methods added in this release. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 2921.6.5
revision-id:robertc at robertcollins.net-20071020234331-djq3v6djt8dptt22
parent: robertc at robertcollins.net-20071020231134-a54h5s14128g72l6
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 09:43:31 +1000
message:
* The ``exclude_pattern`` parameter to the ``bzrlib.tests.`` functions
``filter_suite_by_re`` and ``sort_suite_by_re`` has been deprecated.
(Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
------------------------------------------------------------
revno: 2921.6.4
revision-id:robertc at robertcollins.net-20071020231134-a54h5s14128g72l6
parent: robertc at robertcollins.net-20071020230154-r22h8rsgpbhnw163
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 09:11:34 +1000
message:
Move the filter implementation of sort_tests_by_re back to filter_tests_by_re.
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
------------------------------------------------------------
revno: 2921.6.3
revision-id:robertc at robertcollins.net-20071020230154-r22h8rsgpbhnw163
parent: robertc at robertcollins.net-20071020224938-bh7rlcyv10oyztxc
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 09:01:54 +1000
message:
* New helper method ``bzrlib.tests.randomise_suite`` which returns a
randomised copy of the input suite. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 2921.6.2
revision-id:robertc at robertcollins.net-20071020224938-bh7rlcyv10oyztxc
parent: robertc at robertcollins.net-20071020223257-bu5r35znenkw9ups
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 08:49:38 +1000
message:
* New helper method ``bzrlib.tests.exclude_tests_by_re`` which gives a new
TestSuite that does not contain tests from the input that matched a
regular expression. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
------------------------------------------------------------
revno: 2921.6.1
revision-id:robertc at robertcollins.net-20071020223257-bu5r35znenkw9ups
parent: pqm at pqm.ubuntu.com-20071019201226-6z006xotgfe7zmu8
committer: Robert Collins <robertc at robertcollins.net>
branch nick: in-module-parameterisation
timestamp: Sun 2007-10-21 08:32:57 +1000
message:
* New helper method ``bzrlib.tests.split_suite_by_re`` which splits a test
suite into two according to a regular expression. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
=== modified file 'NEWS'
--- a/NEWS 2007-12-19 06:04:19 +0000
+++ b/NEWS 2007-12-19 08:06:07 +0000
@@ -85,6 +85,39 @@
TESTING:
+ * Modules can now customise their tests by defining a ``load_tests``
+ attribute. ``pydoc bzrlib.tests.TestUtil.TestLoader.loadTestsFromModule``
+ for the documentation on this attribute. (Robert Collins)
+
+ * New helper function ``bzrlib.tests.condition_id_re`` which helps
+ filter tests based on a regular expression search on the tests id.
+ (Robert Collins)
+
+ * New helper function ``bzrlib.tests.condition_isinstance`` which helps
+ filter tests based on class. (Robert Collins)
+
+ * New helper function ``bzrlib.tests.exclude_suite_by_condition`` which
+ generalises the ``exclude_suite_by_re`` function. (Robert Collins)
+
+ * New helper function ``bzrlib.tests.filter_suite_by_condition`` which
+ generalises the ``filter_suite_by_re`` function. (Robert Collins)
+
+ * New helper method ``bzrlib.tests.exclude_tests_by_re`` which gives a new
+ TestSuite that does not contain tests from the input that matched a
+ regular expression. (Robert Collins)
+
+ * New helper method ``bzrlib.tests.randomize_suite`` which returns a
+ randomized copy of the input suite. (Robert Collins)
+
+ * New helper method ``bzrlib.tests.split_suite_by_re`` which splits a test
+ suite into two according to a regular expression. (Robert Collins)
+
+ * The ``exclude_pattern`` and ``random_order`` parameters to the function
+ ``bzrlib.tests.filter_suite_by_re`` have been deprecated. (Robert Collins)
+
+ * The method ``bzrlib.tests.sort_suite_by_re`` has been deprecated. It is
+ replaced by the new helper methods added in this release. (Robert Collins)
+
bzr 1.0 2007-12-14
==================
=== modified file 'bzrlib/dirstate.py'
--- a/bzrlib/dirstate.py 2007-11-18 19:56:39 +0000
+++ b/bzrlib/dirstate.py 2007-12-19 08:12:34 +0000
@@ -250,7 +250,7 @@
A dirstate is a specialised data structure for managing local working
tree state information. Its not yet well defined whether it is platform
- specific, and if it is how we detect/parameterise that.
+ specific, and if it is how we detect/parameterize that.
Dirstates use the usual lock_write, lock_read and unlock mechanisms.
Unlike most bzr disk formats, DirStates must be locked for reading, using
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py 2007-12-07 06:36:56 +0000
+++ b/bzrlib/remote.py 2007-12-19 08:12:34 +0000
@@ -197,7 +197,7 @@
Instances of this repository are represented by RemoteRepository
instances.
- The RemoteRepositoryFormat is parameterised during construction
+ The RemoteRepositoryFormat is parameterized during construction
to reflect the capabilities of the real, remote format. Specifically
the attributes rich_root_data and supports_tree_reference are set
on a per instance basis, and are not set (and should not be) at
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py 2007-12-18 19:42:10 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2007-12-19 08:12:34 +0000
@@ -2129,7 +2129,7 @@
class RepositoryFormatKnitPack1(RepositoryFormatPack):
- """A no-subtrees parameterised Pack repository.
+ """A no-subtrees parameterized Pack repository.
This format was introduced in 0.92.
"""
@@ -2159,7 +2159,7 @@
class RepositoryFormatKnitPack3(RepositoryFormatPack):
- """A subtrees parameterised Pack repository.
+ """A subtrees parameterized Pack repository.
This repository format uses the xml7 serializer to get:
- support for recording full info about the tree root
@@ -2201,7 +2201,7 @@
class RepositoryFormatKnitPack4(RepositoryFormatPack):
- """A rich-root, no subtrees parameterised Pack repository.
+ """A rich-root, no subtrees parameterized Pack repository.
This repository format uses the xml6 serializer to get:
- support for recording full info about the tree root
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py 2007-12-18 22:21:26 +0000
+++ b/bzrlib/repository.py 2007-12-19 08:12:34 +0000
@@ -1964,7 +1964,7 @@
_matchingbzrdir - the bzrdir format that the repository format was
originally written to work with. This can be used if manually
constructing a bzrdir and repository, or more commonly for test suite
- parameterisation.
+ parameterization.
"""
# Set to True or False in derived classes. True indicates that the format
=== modified file 'bzrlib/tests/TestUtil.py'
--- a/bzrlib/tests/TestUtil.py 2007-04-23 03:41:48 +0000
+++ b/bzrlib/tests/TestUtil.py 2007-12-18 07:29:14 +0000
@@ -74,7 +74,8 @@
class TestLoader(unittest.TestLoader):
- """Custom TestLoader to address some quirks in the stock python one."""
+ """Custom TestLoader to extend the stock python one."""
+
suiteClass = TestSuite
def loadTestsFromModuleNames(self, names):
@@ -86,10 +87,41 @@
"""
result = self.suiteClass()
for name in names:
- _load_module_by_name(name)
- result.addTests(self.loadTestsFromName(name))
+ module = _load_module_by_name(name)
+ result.addTests(self.loadTestsFromModule(module))
return result
+ def loadTestsFromModule(self, module):
+ """Load tests from a module object.
+
+ This extension of the python test loader looks for an attribute
+ load_tests in the module object, and if not found falls back to the
+ regular python loadTestsFromModule.
+
+ If a load_tests attribute is found, it is called and the result is
+ returned.
+
+ load_tests should be defined like so:
+ >>> def load_tests(standard_tests, module, loader):
+ >>> pass
+
+ standard_tests is the tests found by the stock TestLoader in the
+ module, module and loader are the module and loader instances.
+
+ For instance, to run every test twice, you might do:
+ >>> def load_tests(standard_tests, module, loader):
+ >>> result = loader.suiteClass()
+ >>> for test in iter_suite_tests(standard_tests):
+ >>> result.addTests([test, test])
+ >>> return result
+ """
+ basic_tests = super(TestLoader, self).loadTestsFromModule(module)
+ load_tests = getattr(module, "load_tests", None)
+ if load_tests is not None:
+ return load_tests(basic_tests, module, self)
+ else:
+ return basic_tests
+
def _load_module_by_name(mod_name):
parts = mod_name.split('.')
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2007-12-17 17:28:25 +0000
+++ b/bzrlib/tests/__init__.py 2007-12-19 08:12:34 +0000
@@ -78,9 +78,13 @@
import bzrlib.store
from bzrlib import symbol_versioning
from bzrlib.symbol_versioning import (
+ DEPRECATED_PARAMETER,
+ deprecated_function,
deprecated_method,
+ deprecated_passed,
zero_ninetyone,
zero_ninetytwo,
+ one_zero,
)
import bzrlib.trace
from bzrlib.transport import get_transport
@@ -95,7 +99,6 @@
TestSuite,
TestLoader,
)
-from bzrlib.tests.EncodingAdapter import EncodingTestAdapter
from bzrlib.tests.treeshape import build_tree_contents
import bzrlib.version_info_formats.format_custom
from bzrlib.workingtree import WorkingTree, WorkingTreeFormat2
@@ -1717,8 +1720,8 @@
_TEST_NAME = 'test'
def __init__(self, methodName='runTest'):
- # allow test parameterisation after test construction and before test
- # execution. Variables that the parameteriser sets need to be
+ # allow test parameterization after test construction and before test
+ # execution. Variables that the parameterizer sets need to be
# ones that are not set by setUp, or setUp will trash them.
super(TestCaseWithMemoryTransport, self).__init__(methodName)
self.vfs_transport_factory = default_transport
@@ -2234,51 +2237,185 @@
self.transport_readonly_server = HttpServer
-def filter_suite_by_re(suite, pattern, exclude_pattern=None,
- random_order=False):
+def condition_id_re(pattern):
+ """Create a condition filter which performs a re check on a test's id.
+
+ :param pattern: A regular expression string.
+ :return: A callable that returns True if the re matches.
+ """
+ filter_re = re.compile(pattern)
+ def condition(test):
+ test_id = test.id()
+ return filter_re.search(test_id)
+ return condition
+
+
+def condition_isinstance(klass_or_klass_list):
+ """Create a condition filter which returns isinstance(param, klass).
+
+ :return: A callable which when called with one parameter obj return the
+ result of isinstance(obj, klass_or_klass_list).
+ """
+ def condition(obj):
+ return isinstance(obj, klass_or_klass_list)
+ return condition
+
+
+def exclude_tests_by_condition(suite, condition):
+ """Create a test suite which excludes some tests from suite.
+
+ :param suite: The suite to get tests from.
+ :param condition: A callable whose result evaluates True when called with a
+ test case which should be excluded from the result.
+ :return: A suite which contains the tests found in suite that fail
+ condition.
+ """
+ result = []
+ for test in iter_suite_tests(suite):
+ if not condition(test):
+ result.append(test)
+ return TestUtil.TestSuite(result)
+
+
+def filter_suite_by_condition(suite, condition):
+ """Create a test suite by filtering another one.
+
+ :param suite: The source suite.
+ :param condition: A callable whose result evaluates True when called with a
+ test case which should be included in the result.
+ :return: A suite which contains the tests found in suite that pass
+ condition.
+ """
+ result = []
+ for test in iter_suite_tests(suite):
+ if condition(test):
+ result.append(test)
+ return TestUtil.TestSuite(result)
+
+
+def filter_suite_by_re(suite, pattern, exclude_pattern=DEPRECATED_PARAMETER,
+ random_order=DEPRECATED_PARAMETER):
"""Create a test suite by filtering another one.
:param suite: the source suite
:param pattern: pattern that names must match
- :param exclude_pattern: pattern that names must not match, if any
- :param random_order: if True, tests in the new suite will be put in
- random order
+ :param exclude_pattern: A pattern that names must not match. This parameter
+ is deprecated as of bzrlib 1.0. Please use the separate function
+ exclude_tests_by_re instead.
+ :param random_order: If True, tests in the new suite will be put in
+ random order. This parameter is deprecated as of bzrlib 1.0. Please
+ use the separate function randomize_suite instead.
:returns: the newly created suite
"""
- return sort_suite_by_re(suite, pattern, exclude_pattern,
- random_order, False)
-
-
+ if deprecated_passed(exclude_pattern):
+ symbol_versioning.warn(
+ one_zero % "passing exclude_pattern to filter_suite_by_re",
+ DeprecationWarning, stacklevel=2)
+ if exclude_pattern is not None:
+ suite = exclude_tests_by_re(suite, exclude_pattern)
+ condition = condition_id_re(pattern)
+ result_suite = filter_suite_by_condition(suite, condition)
+ if deprecated_passed(random_order):
+ symbol_versioning.warn(
+ one_zero % "passing random_order to filter_suite_by_re",
+ DeprecationWarning, stacklevel=2)
+ if random_order:
+ result_suite = randomize_suite(result_suite)
+ return result_suite
+
+
+def exclude_tests_by_re(suite, pattern):
+ """Create a test suite which excludes some tests from suite.
+
+ :param suite: The suite to get tests from.
+ :param pattern: A regular expression string. Test ids that match this
+ pattern will be excluded from the result.
+ :return: A TestSuite that contains all the tests from suite without the
+ tests that matched pattern. The order of tests is the same as it was in
+ suite.
+ """
+ return exclude_tests_by_condition(suite, condition_id_re(pattern))
+
+
+def preserve_input(something):
+ """A helper for performing test suite transformation chains.
+
+ :param something: Anything you want to preserve.
+ :return: Something.
+ """
+ return something
+
+
+def randomize_suite(suite):
+ """Return a new TestSuite with suite's tests in random order.
+
+ The tests in the input suite are flattened into a single suite in order to
+ accomplish this. Any nested TestSuites are removed to provide global
+ randomness.
+ """
+ tests = list(iter_suite_tests(suite))
+ random.shuffle(tests)
+ return TestUtil.TestSuite(tests)
+
+
+ at deprecated_function(one_zero)
def sort_suite_by_re(suite, pattern, exclude_pattern=None,
random_order=False, append_rest=True):
- """Create a test suite by sorting another one.
+ """DEPRECATED: Create a test suite by sorting another one.
+
+ This method has been decomposed into separate helper methods that should be
+ called directly:
+ - filter_suite_by_re
+ - exclude_tests_by_re
+ - randomize_suite
+ - split_suite_by_re
:param suite: the source suite
:param pattern: pattern that names must match in order to go
first in the new suite
:param exclude_pattern: pattern that names must not match, if any
:param random_order: if True, tests in the new suite will be put in
- random order
+ random order (with all tests matching pattern
+ first).
:param append_rest: if False, pattern is a strict filter and not
just an ordering directive
:returns: the newly created suite
"""
- first = []
- second = []
+ if exclude_pattern is not None:
+ suite = exclude_tests_by_re(suite, exclude_pattern)
+ if random_order:
+ order_changer = randomize_suite
+ else:
+ order_changer = preserve_input
+ if append_rest:
+ suites = map(order_changer, split_suite_by_re(suite, pattern))
+ return TestUtil.TestSuite(suites)
+ else:
+ return order_changer(filter_suite_by_re(suite, pattern))
+
+
+def split_suite_by_re(suite, pattern):
+ """Split a test suite into two by a regular expression.
+
+ :param suite: The suite to split.
+ :param pattern: A regular expression string. Test ids that match this
+ pattern will be in the first test suite returned, and the others in the
+ second test suite returned.
+ :return: A tuple of two test suites, where the first contains tests from
+ suite matching pattern, and the second contains the remainder from
+ suite. The order within each output suite is the same as it was in
+ suite.
+ """
+ matched = []
+ did_not_match = []
filter_re = re.compile(pattern)
- if exclude_pattern is not None:
- exclude_re = re.compile(exclude_pattern)
for test in iter_suite_tests(suite):
test_id = test.id()
- if exclude_pattern is None or not exclude_re.search(test_id):
- if filter_re.search(test_id):
- first.append(test)
- elif append_rest:
- second.append(test)
- if random_order:
- random.shuffle(first)
- random.shuffle(second)
- return TestUtil.TestSuite(first + second)
+ if filter_re.search(test_id):
+ matched.append(test)
+ else:
+ did_not_match.append(test)
+ return TestUtil.TestSuite(matched), TestUtil.TestSuite(did_not_match)
def run_suite(suite, name='test', verbose=False, pattern=".*",
@@ -2320,14 +2457,20 @@
(random_seed))
random.seed(random_seed)
# Customise the list of tests if requested
- if pattern != '.*' or exclude_pattern is not None or random_order:
+ if exclude_pattern is not None:
+ suite = exclude_tests_by_re(suite, exclude_pattern)
+ if random_order:
+ order_changer = randomize_suite
+ else:
+ order_changer = preserve_input
+ if pattern != '.*' or random_order:
if matching_tests_first:
- suite = sort_suite_by_re(suite, pattern, exclude_pattern,
- random_order)
+ suites = map(order_changer, split_suite_by_re(suite, pattern))
+ suite = TestUtil.TestSuite(suites)
else:
- suite = filter_suite_by_re(suite, pattern, exclude_pattern,
- random_order)
+ suite = order_changer(filter_suite_by_re(suite, pattern))
+ # Activate code coverage.
if coverage_dir is not None:
tracer = trace.Trace(count=1, trace=0)
sys.settrace(tracer.globaltrace)
@@ -2534,10 +2677,6 @@
from bzrlib.tests.test_transport_implementations import TransportTestProviderAdapter
adapter = TransportTestProviderAdapter()
adapt_modules(test_transport_implementations, adapter, loader, suite)
- adapt_tests(
- ["bzrlib.tests.test_msgeditor.MsgEditorTest."
- "test__create_temp_file_with_commit_template_in_unicode_dir"],
- EncodingTestAdapter(), loader, suite)
for package in packages_to_test():
suite.addTest(package.test_suite())
for m in MODULES_TO_TEST:
=== modified file 'bzrlib/tests/repository_implementations/__init__.py'
--- a/bzrlib/tests/repository_implementations/__init__.py 2007-11-28 00:35:19 +0000
+++ b/bzrlib/tests/repository_implementations/__init__.py 2007-12-19 08:12:34 +0000
@@ -880,10 +880,10 @@
module_name_list = [prefix + module_name
for module_name in test_repository_modules]
- # Parameterise repository_implementations test modules by format.
+ # Parameterize repository_implementations test modules by format.
result = multiply_tests_from_modules(module_name_list, format_scenarios)
- # test_check_reconcile needs to be parameterised by format *and* by broken
+ # test_check_reconcile needs to be parameterized by format *and* by broken
# repository scenario.
broken_scenarios = [(s.__name__, {'scenario_class': s})
for s in all_broken_scenario_classes]
=== modified file 'bzrlib/tests/repository_implementations/test_repository.py'
--- a/bzrlib/tests/repository_implementations/test_repository.py 2007-12-18 20:57:34 +0000
+++ b/bzrlib/tests/repository_implementations/test_repository.py 2007-12-19 08:12:34 +0000
@@ -371,7 +371,7 @@
def test_format_attributes(self):
"""All repository formats should have some basic attributes."""
# create a repository to get a real format instance, not the
- # template from the test suite parameterisation.
+ # template from the test suite parameterization.
repo = self.make_repository('.')
repo._format.rich_root_data
repo._format.supports_tree_reference
=== modified file 'bzrlib/tests/test_msgeditor.py'
--- a/bzrlib/tests/test_msgeditor.py 2007-12-05 03:26:37 +0000
+++ b/bzrlib/tests/test_msgeditor.py 2007-12-19 08:12:34 +0000
@@ -33,14 +33,26 @@
edit_commit_message_encoded
)
from bzrlib.tests import (
+ iter_suite_tests,
probe_bad_non_ascii,
+ split_suite_by_re,
TestCaseWithTransport,
TestNotApplicable,
TestSkipped,
)
+from bzrlib.tests.EncodingAdapter import EncodingTestAdapter
from bzrlib.trace import mutter
+def load_tests(standard_tests, module, loader):
+ """Parameterize the test for tempfile creation with different encodings."""
+ to_adapt, result = split_suite_by_re(standard_tests,
+ "test__create_temp_file_with_commit_template_in_unicode_dir")
+ for test in iter_suite_tests(to_adapt):
+ result.addTests(EncodingTestAdapter().adapt(test))
+ return result
+
+
class MsgEditorTest(TestCaseWithTransport):
def make_uncommitted_tree(self):
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py 2007-10-26 08:12:56 +0000
+++ b/bzrlib/tests/test_selftest.py 2007-12-19 08:12:34 +0000
@@ -36,9 +36,10 @@
from bzrlib.progress import _BaseProgressBar
from bzrlib.repofmt import weaverepo
from bzrlib.symbol_versioning import (
- zero_ten,
- zero_eleven,
- )
+ one_zero,
+ zero_eleven,
+ zero_ten,
+ )
from bzrlib.tests import (
ChrootedTestCase,
ExtendedTestResult,
@@ -54,9 +55,17 @@
TestUtil,
TextTestRunner,
UnavailableFeature,
+ condition_id_re,
+ condition_isinstance,
+ exclude_tests_by_condition,
+ exclude_tests_by_re,
+ filter_suite_by_condition,
+ filter_suite_by_re,
iter_suite_tests,
- filter_suite_by_re,
+ preserve_input,
+ randomize_suite,
sort_suite_by_re,
+ split_suite_by_re,
test_lsprof,
test_suite,
)
@@ -521,7 +530,7 @@
# because each optimiser can be direction specific, we need to test
# each optimiser in its chosen direction.
# unlike the TestProviderAdapter we dont want to automatically add a
- # parameterised one for WorkingTree - the optimisers will tell us what
+ # parameterized one for WorkingTree - the optimisers will tell us what
# ones to add.
from bzrlib.tests.tree_implementations import (
return_parameter,
@@ -1660,21 +1669,104 @@
self.loader = TestUtil.TestLoader()
self.suite.addTest(self.loader.loadTestsFromModuleNames([
'bzrlib.tests.test_selftest']))
- self.all_names = [t.id() for t in iter_suite_tests(self.suite)]
+ self.all_names = self._test_ids(self.suite)
+
+ def _test_ids(self, test_suite):
+ """Get the ids for the tests in a test suite."""
+ return [t.id() for t in iter_suite_tests(test_suite)]
+
+ def test_condition_id_re(self):
+ test_name = ('bzrlib.tests.test_selftest.TestSelftestFiltering.'
+ 'test_condition_id_re')
+ filtered_suite = filter_suite_by_condition(self.suite,
+ condition_id_re('test_condition_id_re'))
+ self.assertEqual([test_name], self._test_ids(filtered_suite))
+
+ def test_condition_isinstance(self):
+ filtered_suite = filter_suite_by_condition(self.suite,
+ condition_isinstance(self.__class__))
+ class_pattern = 'bzrlib.tests.test_selftest.TestSelftestFiltering.'
+ re_filtered = filter_suite_by_re(self.suite, class_pattern)
+ self.assertEqual(self._test_ids(re_filtered),
+ self._test_ids(filtered_suite))
+
+ def test_exclude_tests_by_condition(self):
+ excluded_name = ('bzrlib.tests.test_selftest.TestSelftestFiltering.'
+ 'test_exclude_tests_by_condition')
+ filtered_suite = exclude_tests_by_condition(self.suite,
+ lambda x:x.id() == excluded_name)
+ self.assertEqual(len(self.all_names) - 1,
+ filtered_suite.countTestCases())
+ self.assertFalse(excluded_name in self._test_ids(filtered_suite))
+ remaining_names = list(self.all_names)
+ remaining_names.remove(excluded_name)
+ self.assertEqual(remaining_names, self._test_ids(filtered_suite))
+
+ def test_exclude_tests_by_re(self):
+ self.all_names = self._test_ids(self.suite)
+ filtered_suite = exclude_tests_by_re(self.suite, 'exclude_tests_by_re')
+ excluded_name = ('bzrlib.tests.test_selftest.TestSelftestFiltering.'
+ 'test_exclude_tests_by_re')
+ self.assertEqual(len(self.all_names) - 1,
+ filtered_suite.countTestCases())
+ self.assertFalse(excluded_name in self._test_ids(filtered_suite))
+ remaining_names = list(self.all_names)
+ remaining_names.remove(excluded_name)
+ self.assertEqual(remaining_names, self._test_ids(filtered_suite))
+
+ def test_filter_suite_by_condition(self):
+ test_name = ('bzrlib.tests.test_selftest.TestSelftestFiltering.'
+ 'test_filter_suite_by_condition')
+ filtered_suite = filter_suite_by_condition(self.suite,
+ lambda x:x.id() == test_name)
+ self.assertEqual([test_name], self._test_ids(filtered_suite))
def test_filter_suite_by_re(self):
- filtered_suite = filter_suite_by_re(self.suite, 'test_filter')
- filtered_names = [t.id() for t in iter_suite_tests(filtered_suite)]
+ filtered_suite = filter_suite_by_re(self.suite, 'test_filter_suite_by_r')
+ filtered_names = self._test_ids(filtered_suite)
self.assertEqual(filtered_names, ['bzrlib.tests.test_selftest.'
'TestSelftestFiltering.test_filter_suite_by_re'])
-
+
+ def test_preserve_input(self):
+ # NB: Surely this is something in the stdlib to do this?
+ self.assertTrue(self.suite is preserve_input(self.suite))
+ self.assertTrue("@#$" is preserve_input("@#$"))
+
+ def test_randomize_suite(self):
+ randomized_suite = randomize_suite(self.suite)
+ # randomizing should not add or remove test names.
+ self.assertEqual(set(self._test_ids(self.suite)),
+ set(self._test_ids(randomized_suite)))
+ # Technically, this *can* fail, because random.shuffle(list) can be
+ # equal to list. Trying multiple times just pushes the frequency back.
+ # As its len(self.all_names)!:1, the failure frequency should be low
+ # enough to ignore. RBC 20071021.
+ # It should change the order.
+ self.assertNotEqual(self.all_names, self._test_ids(randomized_suite))
+ # But not the length. (Possibly redundant with the set test, but not
+ # necessarily.)
+ self.assertEqual(len(self.all_names),
+ len(self._test_ids(randomized_suite)))
+
def test_sort_suite_by_re(self):
- sorted_suite = sort_suite_by_re(self.suite, 'test_filter')
- sorted_names = [t.id() for t in iter_suite_tests(sorted_suite)]
+ sorted_suite = self.applyDeprecated(one_zero,
+ sort_suite_by_re, self.suite, 'test_filter_suite_by_r')
+ sorted_names = self._test_ids(sorted_suite)
self.assertEqual(sorted_names[0], 'bzrlib.tests.test_selftest.'
'TestSelftestFiltering.test_filter_suite_by_re')
self.assertEquals(sorted(self.all_names), sorted(sorted_names))
+ def test_split_suit_by_re(self):
+ self.all_names = self._test_ids(self.suite)
+ split_suite = split_suite_by_re(self.suite, 'test_filter_suite_by_r')
+ filtered_name = ('bzrlib.tests.test_selftest.TestSelftestFiltering.'
+ 'test_filter_suite_by_re')
+ self.assertEqual([filtered_name], self._test_ids(split_suite[0]))
+ self.assertFalse(filtered_name in self._test_ids(split_suite[1]))
+ remaining_names = list(self.all_names)
+ remaining_names.remove(filtered_name)
+ self.assertEqual(remaining_names, self._test_ids(split_suite[1]))
+
class TestCheckInventoryShape(TestCaseWithTransport):
@@ -1714,3 +1806,38 @@
out, err = self.run_bzr(["log", "/nonexistantpath"], retcode=3)
self.assertEqual(out, '')
self.assertEqual(err, 'bzr: ERROR: Not a branch: "/nonexistantpath/".\n')
+
+
+class TestTestLoader(TestCase):
+ """Tests for the test loader."""
+
+ def _get_loader_and_module(self):
+ """Gets a TestLoader and a module with one test in it."""
+ loader = TestUtil.TestLoader()
+ module = {}
+ class Stub(TestCase):
+ def test_foo(self):
+ pass
+ class MyModule(object):
+ pass
+ MyModule.a_class = Stub
+ module = MyModule()
+ return loader, module
+
+ def test_module_no_load_tests_attribute_loads_classes(self):
+ loader, module = self._get_loader_and_module()
+ self.assertEqual(1, loader.loadTestsFromModule(module).countTestCases())
+
+ def test_module_load_tests_attribute_gets_called(self):
+ loader, module = self._get_loader_and_module()
+ # 'self' is here because we're faking the module with a class. Regular
+ # load_tests do not need that :)
+ def load_tests(self, standard_tests, module, loader):
+ result = loader.suiteClass()
+ for test in iter_suite_tests(standard_tests):
+ result.addTests([test, test])
+ return result
+ # add a load_tests() method which multiplies the tests from the module.
+ module.__class__.load_tests = load_tests
+ self.assertEqual(2, loader.loadTestsFromModule(module).countTestCases())
+
More information about the bazaar-commits
mailing list