]> git.ozlabs.org Git - patchwork/commit
tests: check some edge cases in bundle reordering tests
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 13 Aug 2009 21:09:17 +0000 (18:09 -0300)
committerJeremy Kerr <jk@ozlabs.org>
Sat, 15 Aug 2009 03:18:01 +0000 (13:18 +1000)
commit428762cd01e05ba4ebb991541a84a7e514f10a88
tree996cac873f39ce30dc44d83e499d320a1fcedc40
parentfc58a911d4a43d6e0b06a1bd2e397e5448a591a7
tests: check some edge cases in bundle reordering tests

While testing BundleReorderTest, I felt like adding more test cases to
check if reordering is touching only the right patches on the bundle.

This increases the number of patches on the test bundle to 5, and
changes the code to do the following tests:

- Reorder all patches
- Reorder only the first 3 patches
- Reorder only the last 3 patches
- Reorder only the middle 3 patches
- On all above tests, check if the 'order' field on the BundlePatch
  objects is still consistent

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/tests/bundles.py