Package trac :: Package ticket :: Package tests :: Module batch :: Class BatchModifyTestCase

Class BatchModifyTestCase

source code

            object --+    
                     |    
unittest.case.TestCase --+
                         |
                        BatchModifyTestCase

Nested Classes

Inherited from unittest.case.TestCase: failureException

Instance Methods
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
assertCommentAdded(self, ticket_id, comment) source code
 
assertFieldChanged(self, ticket_id, field, new_value) source code
 
test_ignore_summary_reporter_and_description(self)
These cannot be added through the UI, but if somebody tries to build their own POST data they will be ignored.
source code
 
test_add_batchmod_value_data_from_request(self) source code
 
test_selected_tickets(self) source code
 
test_no_selected_tickets(self)
If nothing is selected, the return value is the empty list.
source code
 
test_require_post_method(self) source code
 
test_redirect_to_query_href_in_req_args(self) source code
 
test_change_list_replace_empty_with_single(self)
Replace emtpy field with single item.
source code
 
test_change_list_replace_empty_with_items(self)
Replace emtpy field with items.
source code
 
test_change_list_replace_item(self)
Replace item with a different item.
source code
 
test_change_list_replace_item_with_items(self)
Replace item with different items.
source code
 
test_change_list_replace_items_with_item(self)
Replace items with a different item.
source code
 
test_change_list_replace_items(self)
Replace items with different items.
source code
 
test_change_list_replace_items_partial(self)
Replace items with different (or not) items.
source code
 
test_change_list_clear(self)
Clear field.
source code
 
test_change_list_add_item(self)
Append additional item.
source code
 
test_change_list_add_items(self)
Append additional items.
source code
 
test_change_list_remove_item(self)
Remove existing item.
source code
 
test_change_list_remove_items(self)
Remove existing items.
source code
 
test_change_list_remove_idempotent(self)
Ignore missing item to be removed.
source code
 
test_change_list_remove_mixed(self)
Ignore only missing item to be removed.
source code
 
test_change_list_add_remove(self)
Remove existing item and append additional item.
source code
 
test_change_list_add_no_duplicates(self)
Existing items are not duplicated.
source code
 
test_change_list_remove_all_duplicates(self)
Remove all duplicates.
source code
 
test_save_comment(self)
Comments are saved to all selected tickets.
source code
 
test_save_values(self)
Changed values are saved to all tickets.
source code
 
test_save_list_fields(self) source code
 
test_action_with_state_change(self)
Actions can have change status.
source code
 
test_action_with_side_effects(self)
Actions can have operations with side effects.
source code
 
test_timeline_events(self)
Regression test for #11288
source code
 
test_post_process_request_error_handling(self)
Exception not raised in post_process_request error handling.
source code

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest, tearDown

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables

Inherited from unittest.case.TestCase: longMessage, maxDiff

Properties

Inherited from object: __class__

Method Details

setUp(self)

source code 
Hook method for setting up the test fixture before exercising it.
Overrides: unittest.case.TestCase.setUp
(inherited documentation)