class AdminSeleniumTestCase(SeleniumTestCase, StaticLiveServerTestCase): (source)
Undocumented
Method | admin |
Log in to the admin. |
Method | assert |
Assert number of matches for a CSS selector. |
Method | assert |
Assert that the <SELECT> widget identified by `selector` has the selected options with the given `values`. |
Method | assert |
Assert that the <SELECT> widget identified by `selector` has the options with the given `values`. |
Method | deselect |
Deselect the <OPTION> with the value `value` inside the <SELECT> widget identified by the CSS selector `selector`. |
Method | has |
Return True if the element identified by `selector` has the CSS class `klass`. |
Method | select |
Select the <OPTION> with the value `value` inside the <SELECT> widget identified by the CSS selector `selector`. |
Method | wait |
Block until a CSS selector is found on the page. |
Method | wait |
Block until `num_windows` are present and are ready (usually 2, but can be overridden in the case of pop-ups opening other pop-ups). Switch the current window to the new pop-up. |
Method | wait |
Block until the text is found in the CSS selector. |
Method | wait |
Block until the value is found in the CSS selector. |
Method | wait |
Block until a new page has loaded and is ready. |
Method | wait |
Block until the page is ready. |
Method | wait |
Block the execution of the tests until the specified callback returns a value that is not falsy. This method can be called, for example, after clicking a link or submitting a form. See the other public methods that call this function for more details. |
Method | wait |
Block until the element described by the CSS selector is invisible. |
Method | wait |
Block until the element described by the CSS selector is visible. |
Class Variable | available |
Undocumented |
Method | _assert |
Undocumented |
Inherited from SeleniumTestCase
:
Class Method | set |
Undocumented |
Method | disable |
Disable the default implicit wait. |
Class Variable | external |
Undocumented |
Class Variable | implicit |
Undocumented |
Property | allowed |
Undocumented |
Property | live |
Undocumented |
Class Method | _tear |
Undocumented |
Inherited from LiveServerTestCase
(via SeleniumTestCase
, StaticLiveServerTestCase
):
Class Variable | host |
Undocumented |
Class Variable | port |
Undocumented |
Class Method | _create |
Undocumented |
Class Method | _make |
Undocumented |
Class Method | _start |
Undocumented |
Class Method | _terminate |
Undocumented |
Inherited from TransactionTestCase
(via SeleniumTestCase
, StaticLiveServerTestCase
, LiveServerTestCase
):
Method | assert |
Undocumented |
Method | assert |
Undocumented |
Class Variable | databases |
Undocumented |
Class Variable | fixtures |
Undocumented |
Class Variable | reset |
Undocumented |
Class Variable | serialized |
Undocumented |
Class Method | _databases |
Undocumented |
Method | _fixture |
Undocumented |
Method | _fixture |
Undocumented |
Method | _post |
Perform post-test things: * Flush the contents of the database to leave a clean slate. If the class has an 'available_apps' attribute, don't fire post_migrate. * Force-close the connection so the next test gets a clean cursor. |
Method | _pre |
Perform pre-test setup: * If the class has an 'available_apps' attribute, restrict the app registry to these applications, then fire the post_migrate signal -- it must run with the correct set of applications for the test case... |
Method | _reset |
Undocumented |
Method | _should |
Undocumented |
Class Variable | _disallowed |
Undocumented |
Inherited from SimpleTestCase
(via SeleniumTestCase
, StaticLiveServerTestCase
, LiveServerTestCase
, TransactionTestCase
):
Method | __call__ |
Wrapper around default __call__ method to perform common Django test set up. This means that user-defined Test Cases aren't required to include a call to super().setUp(). |
Method | assert |
Assert that a response indicates that some content was retrieved successfully, (i.e., the HTTP status code was as expected) and that ``text`` occurs ``count`` times in the content of the response. If ``count`` is None, the count doesn't matter - the assertion is true if the text occurs at least once in the response. |
Method | assert |
Assert that a form field behaves correctly with various inputs. |
Method | assert |
Assert that a field named "field" on the given form object has specific errors. |
Method | assert |
Similar to assertFormError() but for formsets. |
Method | assert |
Assert that two HTML snippets are semantically the same. Whitespace in most cases is ignored, and attribute ordering is not significant. The arguments must be valid HTML. |
Method | assert |
Assert that two HTML snippets are not semantically equivalent. |
Method | assert |
Undocumented |
Method | assert |
Assert that the JSON fragments raw and expected_data are equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library. |
Method | assert |
Assert that the JSON fragments raw and expected_data are not equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library. |
Method | assert |
Assert no messages are logged on the logger, with at least the given level. |
Method | assert |
Assert that a response indicates that some content was retrieved successfully, (i.e., the HTTP status code was as expected) and that ``text`` doesn't occur in the content of the response. |
Method | assert |
Assert that expected_message is found in the message of a raised exception. |
Method | assert |
Assert that a response redirected to a specific URL and that the redirect URL can be loaded. |
Method | assert |
Assert that the template with the provided name was NOT used in rendering the response. Also usable as context manager. |
Method | assert |
Assert that the template with the provided name was used in rendering the response. Also usable as context manager. |
Method | assert |
Assert that two URLs are the same, ignoring the order of query string parameters except for parameters with the same name. |
Method | assert |
Same as assertRaisesMessage but for assertWarns() instead of assertRaises(). |
Method | assert |
Assert that two XML snippets are semantically the same. Whitespace in most cases is ignored and attribute ordering is not significant. The arguments must be valid XML. |
Method | assert |
Assert that two XML snippets are not semantically equivalent. Whitespace in most cases is ignored and attribute ordering is not significant. The arguments must be valid XML. |
Method | debug |
Perform the same as __call__(), without catching the exception. |
Method | modify |
A context manager that temporarily applies changes a list setting and reverts back to the original value when exiting the context. |
Method | settings |
A context manager that temporarily sets a setting and reverts to the original value when exiting the context. |
Instance Variable | async |
Undocumented |
Instance Variable | client |
Undocumented |
Class Method | _add |
Undocumented |
Class Method | _remove |
Undocumented |
Class Method | _validate |
Undocumented |
Method | _assert |
Undocumented |
Method | _assert |
Undocumented |
Method | _assert |
Undocumented |
Method | _assert |
Undocumented |
Method | _assert |
Undocumented |
Method | _check |
Raise a ValueError if the given response doesn't have the required attribute. |
Method | _get |
Undocumented |
Method | _setup |
Perform the following in order: pre-setup, run test, post-teardown, skipping pre/post hooks if test is set to be skipped. |
Class Variable | _disallowed |
Undocumented |
Class Variable | _modified |
Undocumented |
Class Variable | _overridden |
Undocumented |
Assert number of matches for a CSS selector. `root_element` allow restriction to a pre-selected node.
Assert that the <SELECT> widget identified by `selector` has the selected options with the given `values`.
Deselect the <OPTION> with the value `value` inside the <SELECT> widget identified by the CSS selector `selector`.
Select the <OPTION> with the value `value` inside the <SELECT> widget identified by the CSS selector `selector`.
Block until `num_windows` are present and are ready (usually 2, but can be overridden in the case of pop-ups opening other pop-ups). Switch the current window to the new pop-up.
Block the execution of the tests until the specified callback returns a value that is not falsy. This method can be called, for example, after clicking a link or submitting a form. See the other public methods that call this function for more details.