Package trac :: Package ticket :: Package tests :: Module console :: Class TracAdminTestCase

Class TracAdminTestCase

source code

                  object --+        
                           |        
      unittest.case.TestCase --+    
                               |    
admin.test.TracAdminTestCaseBase --+
                                   |
                                  TracAdminTestCase

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
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
test_component_help(self) source code
 
test_component_list_ok(self)
Tests the 'component list' command in trac-admin.
source code
 
test_component_add_ok(self)
Tests the 'component add' command in trac-admin.
source code
 
test_component_add_optional_owner_ok(self)
Tests the 'component add' command in trac-admin with the optional 'owner' argument.
source code
 
test_component_add_complete_optional_owner_restrict_owner_false(self)
Tests completion of the 'component add <component>' command with [ticket] restrict_owner = false.
source code
 
test_component_add_complete_optional_owner_restrict_owner_true(self)
Tests completion of the 'component add <component>' command with [ticket] restrict_owner = true.
source code
 
test_component_add_error_already_exists(self)
Tests the 'component add' command in trac-admin.
source code
 
test_component_rename_ok(self)
Tests the 'component rename' command in trac-admin.
source code
 
test_component_rename_error_bad_component(self)
Tests the 'component rename' command in trac-admin.
source code
 
test_component_rename_error_bad_new_name(self)
Tests the 'component rename' command in trac-admin.
source code
 
test_component_chown_ok(self)
Tests the 'component chown' command in trac-admin.
source code
 
test_component_chown_complete_component(self)
Tests completion of the 'component chown' command.
source code
 
test_component_chown_complete_owner_restrict_owner_false(self)
Tests completion of the 'component chown <component>' command with [ticket] restrict_owner = false.
source code
 
test_component_chown_complete_owner_restrict_owner_true(self)
Tests completion of the 'component chown <component>' command with [ticket] restrict_owner = true.
source code
 
test_component_chown_error_bad_component(self)
Tests the 'component chown' command in trac-admin.
source code
 
test_component_remove_ok(self)
Tests the 'component remove' command in trac-admin.
source code
 
test_component_remove_error_bad_component(self)
Tests the 'component remove' command in trac-admin.
source code
 
test_ticket_help(self) source code
 
test_ticket_remove_ok(self)
Ticket is successfully deleted.
source code
 
test_ticket_remove_error_no_ticket_argument(self)
Error reported when ticket# argument is missing.
source code
 
test_ticket_remove_error_ticket_id_not_an_int(self)
Error reported when ticket id is not an int.
source code
 
test_ticket_remove_error_invalid_ticket_id(self)
ResourceNotFound error reported when ticket does not exist.
source code
 
test_ticket_comment_remove_ok(self)
Ticket comment is successfully deleted.
source code
 
test_ticket_comment_remove_error_no_ticket_argument(self)
Error reported when ticket# argument is missing.
source code
 
test_ticket_comment_remove_error_no_comment_argument(self)
Error reported when comment# argument is missing.
source code
 
test_ticket_comment_remove_error_ticket_id_not_an_int(self)
ResourceNotFound error reported when comment does not exist.
source code
 
test_ticket_comment_remove_error_comment_id_not_an_int(self)
ResourceNotFound error reported when comment does not exist.
source code
 
test_ticket_comment_remove_error_invalid_ticket_id(self)
ResourceNotFound error reported when ticket does not exist.
source code
 
test_ticket_comment_remove_error_invalid_comment_id(self)
ResourceNotFound error reported when comment does not exist.
source code
 
test_ticket_type_list_ok(self)
Tests the 'ticket_type list' command in trac-admin.
source code
 
test_ticket_type_add_ok(self)
Tests the 'ticket_type add' command in trac-admin.
source code
 
test_ticket_type_add_error_already_exists(self)
Tests the 'ticket_type add' command in trac-admin.
source code
 
test_ticket_type_change_ok(self)
Tests the 'ticket_type change' command in trac-admin.
source code
 
test_ticket_type_change_error_bad_type(self)
Tests the 'ticket_type change' command in trac-admin.
source code
 
test_ticket_type_change_error_bad_new_name(self)
Tests the 'ticket_type change' command in trac-admin.
source code
 
test_ticket_type_remove_ok(self)
Tests the 'ticket_type remove' command in trac-admin.
source code
 
test_ticket_type_remove_error_bad_type(self)
Tests the 'ticket_type remove' command in trac-admin.
source code
 
test_ticket_type_order_down_ok(self)
Tests the 'ticket_type order' command in trac-admin.
source code
 
test_ticket_type_order_up_ok(self)
Tests the 'ticket_type order' command in trac-admin.
source code
 
test_ticket_type_order_error_bad_type(self)
Tests the 'priority order' command in trac-admin.
source code
 
test_priority_help(self) source code
 
test_priority_list_ok(self)
Tests the 'priority list' command in trac-admin.
source code
 
test_priority_add_ok(self)
Tests the 'priority add' command in trac-admin.
source code
 
test_priority_add_many_ok(self)
Tests adding more than 10 priority values.
source code
 
test_priority_add_error_already_exists(self)
Tests the 'priority add' command in trac-admin.
source code
 
test_priority_change_ok(self)
Tests the 'priority change' command in trac-admin.
source code
 
test_priority_change_error_bad_priority(self)
Tests the 'priority change' command in trac-admin.
source code
 
test_priority_change_error_bad_new_name(self)
Tests the 'priority change' command in trac-admin.
source code
 
test_priority_remove_ok(self)
Tests the 'priority remove' command in trac-admin.
source code
 
test_priority_remove_error_bad_priority(self)
Tests the 'priority remove' command in trac-admin.
source code
 
test_priority_order_down_ok(self)
Tests the 'priority order' command in trac-admin.
source code
 
test_priority_order_up_ok(self)
Tests the 'priority order' command in trac-admin.
source code
 
test_priority_order_error_bad_priority(self)
Tests the 'priority order' command in trac-admin.
source code
 
test_severity_help(self) source code
 
test_severity_list_ok(self)
Tests the 'severity list' command in trac-admin.
source code
 
test_severity_add_ok(self)
Tests the 'severity add' command in trac-admin.
source code
 
test_severity_add_error_already_exists(self)
Tests the 'severity add' command in trac-admin.
source code
 
test_severity_change_ok(self)
Tests the 'severity add' command in trac-admin.
source code
 
test_severity_change_error_bad_severity(self)
Tests the 'severity change' command in trac-admin.
source code
 
test_severity_change_error_bad_new_name(self)
Tests the 'severity change' command in trac-admin.
source code
 
test_severity_remove_ok(self)
Tests the 'severity add' command in trac-admin.
source code
 
test_severity_remove_error_bad_severity(self)
Tests the 'severity remove' command in trac-admin.
source code
 
test_severity_order_down_ok(self)
Tests the 'severity order' command in trac-admin.
source code
 
test_severity_order_up_ok(self)
Tests the 'severity order' command in trac-admin.
source code
 
test_severity_order_error_bad_severity(self)
Tests the 'severity order' command in trac-admin.
source code
 
test_help_version_time(self) source code
 
test_version_help(self) source code
 
test_version_list_ok(self)
Tests the 'version list' command in trac-admin.
source code
 
test_version_add_ok(self)
Tests the 'version add' command in trac-admin.
source code
 
test_version_add_too_many_arguments(self) source code
 
test_version_add_error_already_exists(self)
Tests the 'version add' command in trac-admin.
source code
 
test_version_rename_ok(self)
Tests the 'version rename' command in trac-admin.
source code
 
test_version_rename_error_bad_version(self)
Tests the 'version rename' command in trac-admin.
source code
 
test_version_rename_error_bad_new_name(self)
Tests the 'version rename' command in trac-admin.
source code
 
test_version_time_ok(self)
Tests the 'version time' command in trac-admin.
source code
 
test_version_time_unset_ok(self)
Tests the 'version time' command in trac-admin.
source code
 
test_version_time_error_bad_version(self)
Tests the 'version time' command in trac-admin.
source code
 
test_version_remove_ok(self)
Tests the 'version remove' command in trac-admin.
source code
 
test_version_remove_error_bad_version(self)
Tests the 'version remove' command in trac-admin.
source code
 
test_backslash_use_ok(self) source code
 
test_milestone_help(self) source code
 
test_help_milestone_due(self) source code
 
test_help_milestone_completed(self) source code
 
test_milestone_list_ok(self)
Tests the 'milestone list' command in trac-admin.
source code
 
test_milestone_add_ok(self)
Tests the 'milestone add' command in trac-admin.
source code
 
test_milestone_add_utf8_ok(self)
Tests the 'milestone add' command in trac-admin.
source code
 
test_milestone_add_error_already_exists(self)
Tests the 'milestone add' command in trac-admin.
source code
 
test_milestone_add_invalid_date(self) source code
 
test_milestone_rename_ok(self)
Tests the 'milestone rename' command in trac-admin.
source code
 
test_milestone_rename_error_bad_milestone(self)
Tests the 'milestone rename' command in trac-admin.
source code
 
test_milestone_due_ok(self)
Tests the 'milestone due' command in trac-admin.
source code
 
test_milestone_due_unset_ok(self)
Tests the 'milestone due' command in trac-admin.
source code
 
test_milestone_due_error_bad_milestone(self)
Tests the 'milestone due' command in trac-admin.
source code
 
test_milestone_due_invalid_date(self) source code
 
test_milestone_completed_ok(self)
Tests the 'milestone completed' command in trac-admin.
source code
 
test_milestone_completed_error_bad_milestone(self)
Tests the 'milestone completed' command in trac-admin.
source code
 
test_milestone_completed_invalid_date(self) source code
 
test_milestone_remove_ok(self)
Tests the 'milestone remove' command in trac-admin.
source code
 
test_milestone_remove_error_bad_milestone(self)
Tests the 'milestone remove' command in trac-admin.
source code

Inherited from admin.test.TracAdminTestCaseBase: assertExpectedResult, complete_command, execute, get_command_help

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

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

Class Methods

Inherited from admin.test.TracAdminTestCaseBase: execute_run, setUpClass, tearDownClass

Class Variables

Inherited from admin.test.TracAdminTestCaseBase: expected_results_filename

Inherited from unittest.case.TestCase: longMessage, maxDiff

Properties
  datetime_format_hint

Inherited from admin.test.TracAdminTestCaseBase: expected_results, expected_results_file

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)

tearDown(self)

source code 
Hook method for deconstructing the test fixture after testing it.
Overrides: unittest.case.TestCase.tearDown
(inherited documentation)

test_component_list_ok(self)

source code 
Tests the 'component list' command in trac-admin. Since this command has no command arguments, it is hard to call it incorrectly. As a result, there is only this one test.

test_component_add_ok(self)

source code 
Tests the 'component add' command in trac-admin. This particular test passes valid arguments and checks for success.

test_component_add_optional_owner_ok(self)

source code 
Tests the 'component add' command in trac-admin with the optional 'owner' argument. This particular test passes valid arguments and checks for success.

test_component_add_error_already_exists(self)

source code 
Tests the 'component add' command in trac-admin. This particular test passes a component name that already exists and checks for an error message.

test_component_rename_ok(self)

source code 
Tests the 'component rename' command in trac-admin. This particular test passes valid arguments and checks for success.

test_component_rename_error_bad_component(self)

source code 
Tests the 'component rename' command in trac-admin. This particular test tries to rename a component that does not exist.

test_component_rename_error_bad_new_name(self)

source code 
Tests the 'component rename' command in trac-admin. This particular test tries to rename a component to a name that already exists.

test_component_chown_ok(self)

source code 
Tests the 'component chown' command in trac-admin. This particular test passes valid arguments and checks for success.

test_component_chown_error_bad_component(self)

source code 
Tests the 'component chown' command in trac-admin. This particular test tries to change the owner of a component that does not exist.

test_component_remove_ok(self)

source code 
Tests the 'component remove' command in trac-admin. This particular test passes a valid argument and checks for success.

test_component_remove_error_bad_component(self)

source code 
Tests the 'component remove' command in trac-admin. This particular test tries to remove a component that does not exist.

test_ticket_type_list_ok(self)

source code 
Tests the 'ticket_type list' command in trac-admin. Since this command has no command arguments, it is hard to call it incorrectly. As a result, there is only this one test.

test_ticket_type_add_ok(self)

source code 
Tests the 'ticket_type add' command in trac-admin. This particular test passes a valid argument and checks for success.

test_ticket_type_add_error_already_exists(self)

source code 
Tests the 'ticket_type add' command in trac-admin. This particular test passes a ticket type that already exists and checks for an error message.

test_ticket_type_change_ok(self)

source code 
Tests the 'ticket_type change' command in trac-admin. This particular test passes valid arguments and checks for success.

test_ticket_type_change_error_bad_type(self)

source code 
Tests the 'ticket_type change' command in trac-admin. This particular test tries to change a priority that does not exist.

test_ticket_type_change_error_bad_new_name(self)

source code 
Tests the 'ticket_type change' command in trac-admin. This particular test tries to change a ticket type to another type that already exists.

test_ticket_type_remove_ok(self)

source code 
Tests the 'ticket_type remove' command in trac-admin. This particular test passes a valid argument and checks for success.

test_ticket_type_remove_error_bad_type(self)

source code 
Tests the 'ticket_type remove' command in trac-admin. This particular test tries to remove a ticket type that does not exist.

test_ticket_type_order_down_ok(self)

source code 
Tests the 'ticket_type order' command in trac-admin. This particular test passes a valid argument and checks for success.

test_ticket_type_order_up_ok(self)

source code 
Tests the 'ticket_type order' command in trac-admin. This particular test passes a valid argument and checks for success.

test_ticket_type_order_error_bad_type(self)

source code 
Tests the 'priority order' command in trac-admin. This particular test tries to reorder a priority that does not exist.

test_priority_list_ok(self)

source code 
Tests the 'priority list' command in trac-admin. Since this command has no command arguments, it is hard to call it incorrectly. As a result, there is only this one test.

test_priority_add_ok(self)

source code 
Tests the 'priority add' command in trac-admin. This particular test passes a valid argument and checks for success.

test_priority_add_many_ok(self)

source code 
Tests adding more than 10 priority values. This makes sure that ordering is preserved when adding more than 10 values.

test_priority_add_error_already_exists(self)

source code 
Tests the 'priority add' command in trac-admin. This particular test passes a priority name that already exists and checks for an error message.

test_priority_change_ok(self)

source code 
Tests the 'priority change' command in trac-admin. This particular test passes valid arguments and checks for success.

test_priority_change_error_bad_priority(self)

source code 
Tests the 'priority change' command in trac-admin. This particular test tries to change a priority that does not exist.

test_priority_change_error_bad_new_name(self)

source code 
Tests the 'priority change' command in trac-admin. This particular test tries to change a priority to a name that already exists.

test_priority_remove_ok(self)

source code 
Tests the 'priority remove' command in trac-admin. This particular test passes a valid argument and checks for success.

test_priority_remove_error_bad_priority(self)

source code 
Tests the 'priority remove' command in trac-admin. This particular test tries to remove a priority that does not exist.

test_priority_order_down_ok(self)

source code 
Tests the 'priority order' command in trac-admin. This particular test passes a valid argument and checks for success.

test_priority_order_up_ok(self)

source code 
Tests the 'priority order' command in trac-admin. This particular test passes a valid argument and checks for success.

test_priority_order_error_bad_priority(self)

source code 
Tests the 'priority order' command in trac-admin. This particular test tries to reorder a priority that does not exist.

test_severity_list_ok(self)

source code 
Tests the 'severity list' command in trac-admin. Since this command has no command arguments, it is hard to call it incorrectly. As a result, there is only this one test.

test_severity_add_ok(self)

source code 
Tests the 'severity add' command in trac-admin. This particular test passes a valid argument and checks for success.

test_severity_add_error_already_exists(self)

source code 
Tests the 'severity add' command in trac-admin. This particular test passes a severity name that already exists and checks for an error message.

test_severity_change_ok(self)

source code 
Tests the 'severity add' command in trac-admin. This particular test passes valid arguments and checks for success.

test_severity_change_error_bad_severity(self)

source code 
Tests the 'severity change' command in trac-admin. This particular test tries to change a severity that does not exist.

test_severity_change_error_bad_new_name(self)

source code 
Tests the 'severity change' command in trac-admin. This particular test tries to change a severity to a name that already exists.

test_severity_remove_ok(self)

source code 
Tests the 'severity add' command in trac-admin. This particular test passes a valid argument and checks for success.

test_severity_remove_error_bad_severity(self)

source code 
Tests the 'severity remove' command in trac-admin. This particular test tries to remove a severity that does not exist.

test_severity_order_down_ok(self)

source code 
Tests the 'severity order' command in trac-admin. This particular test passes a valid argument and checks for success.

test_severity_order_up_ok(self)

source code 
Tests the 'severity order' command in trac-admin. This particular test passes a valid argument and checks for success.

test_severity_order_error_bad_severity(self)

source code 
Tests the 'severity order' command in trac-admin. This particular test tries to reorder a priority that does not exist.

test_version_list_ok(self)

source code 
Tests the 'version list' command in trac-admin. Since this command has no command arguments, it is hard to call it incorrectly. As a result, there is only this one test.

test_version_add_ok(self)

source code 
Tests the 'version add' command in trac-admin. This particular test passes valid arguments and checks for success.

test_version_add_error_already_exists(self)

source code 
Tests the 'version add' command in trac-admin. This particular test passes a version name that already exists and checks for an error message.

test_version_rename_ok(self)

source code 
Tests the 'version rename' command in trac-admin. This particular test passes valid arguments and checks for success.

test_version_rename_error_bad_version(self)

source code 
Tests the 'version rename' command in trac-admin. This particular test tries to rename a version that does not exist.

test_version_rename_error_bad_new_name(self)

source code 
Tests the 'version rename' command in trac-admin. This particular test tries to rename a version to a name that already exists.

test_version_time_ok(self)

source code 
Tests the 'version time' command in trac-admin. This particular test passes valid arguments and checks for success.

test_version_time_unset_ok(self)

source code 
Tests the 'version time' command in trac-admin. This particular test passes valid arguments for unsetting the date.

test_version_time_error_bad_version(self)

source code 
Tests the 'version time' command in trac-admin. This particular test tries to change the time on a version that does not exist.

test_version_remove_ok(self)

source code 
Tests the 'version remove' command in trac-admin. This particular test passes a valid argument and checks for success.

test_version_remove_error_bad_version(self)

source code 
Tests the 'version remove' command in trac-admin. This particular test tries to remove a version that does not exist.

test_milestone_list_ok(self)

source code 
Tests the 'milestone list' command in trac-admin. Since this command has no command arguments, it is hard to call it incorrectly. As a result, there is only this one test.

test_milestone_add_ok(self)

source code 
Tests the 'milestone add' command in trac-admin. This particular test passes valid arguments and checks for success.

test_milestone_add_utf8_ok(self)

source code 
Tests the 'milestone add' command in trac-admin. This particular test passes valid arguments and checks for success.

test_milestone_add_error_already_exists(self)

source code 
Tests the 'milestone add' command in trac-admin. This particular test passes a milestone name that already exists and checks for an error message.

test_milestone_rename_ok(self)

source code 
Tests the 'milestone rename' command in trac-admin. This particular test passes valid arguments and checks for success.

test_milestone_rename_error_bad_milestone(self)

source code 
Tests the 'milestone rename' command in trac-admin. This particular test tries to rename a milestone that does not exist.

test_milestone_due_ok(self)

source code 
Tests the 'milestone due' command in trac-admin. This particular test passes valid arguments and checks for success.

test_milestone_due_unset_ok(self)

source code 
Tests the 'milestone due' command in trac-admin. This particular test passes valid arguments for unsetting the due date.

test_milestone_due_error_bad_milestone(self)

source code 
Tests the 'milestone due' command in trac-admin. This particular test tries to change the due date on a milestone that does not exist.

test_milestone_completed_ok(self)

source code 
Tests the 'milestone completed' command in trac-admin. This particular test passes valid arguments and checks for success.

test_milestone_completed_error_bad_milestone(self)

source code 
Tests the 'milestone completed' command in trac-admin. This particular test tries to change the completed date on a milestone that does not exist.

test_milestone_remove_ok(self)

source code 
Tests the 'milestone remove' command in trac-admin. This particular test passes a valid argument and checks for success.

test_milestone_remove_error_bad_milestone(self)

source code 
Tests the 'milestone remove' command in trac-admin. This particular test tries to remove a milestone that does not exist.

Property Details

datetime_format_hint

Get Method:
unreachable.datetime_format_hint(self)