~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4241.14.19.

  • Committer: Vincent Ladeuil
  • Date: 2009-04-17 12:42:50 UTC
  • mto: (4331.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4332.
  • Revision ID: v.ladeuil+lp@free.fr-20090417124250-vb9zcpl3rgfu0uop
Modernize dirstate helpers tests parametrization.

* bzrlib/tests/test__dirstate_helpers.py:
(load_tests): Add parametrized tests for C/Python dirstate helpers
on top dir readers ones.
(TestUpdateEntry): Use parametrization facilities and load_tests
instead of inheritance.
(TestUpdateEntry.test_sha1provider_sha1_used): Ouch ! Direct use
of dirstate.update_entry, while correct now, wasn't respecting the
parametrization before (set_update_entry wasn't called).
(TestProcessEntry): Use parametrization facilities and load_tests
instead of inheritance.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: