l.s.w.t.t.TestStormRangeFactory(TestCaseWithFactory) : class documentation

Part of lp.services.webapp.tests.test_batching View In Hierarchy

Tests for StormRangeFactory.
Method setUp Undocumented
Method makeStormResultSet Undocumented
Method makeDecoratedStormResultSet Undocumented
Method test_StormRangeFactory_implements_IRangeFactory Undocumented
Method test_StormRangeFactory_needs__ordered_result_set Undocumented
Method test_getOrderValuesFor__one_sort_column Undocumented
Method test_getOrderValuesFor__two_sort_columns Undocumented
Method test_getOrderValuesFor__string_as_sort_expression Undocumented
Method test_getOrderValuesFor__generic_storm_expression_as_sort_expr Undocumented
Method test_getOrderValuesFor__decorated_result_set Undocumented
Method test_getOrderValuesFor__value_from_second_element_of_result_row Undocumented
Method test_getOrderValuesFor__descending_sort_order Undocumented
Method test_getOrderValuesFor__table_not_included_in_results Undocumented
Method test_DatetimeJSONEncoder Undocumented
Method test_getEndpointMemos Undocumented
Method test_getEndpointMemos__decorated_result_set Undocumented
Method logError Undocumented
Method test_parseMemo__empty_value Undocumented
Method test_parseMemo__json_error Undocumented
Method test_parseMemo__json_no_sequence Undocumented
Method test_parseMemo__wrong_list_length Undocumented
Method test_parseMemo__memo_type_check Undocumented
Method test_parseMemo__valid_data Undocumented
Method test_parseMemo__short_iso_timestamp Undocumented
Method test_parseMemo__long_iso_timestamp Undocumented
Method test_parseMemo__short_iso_timestamp_with_tzoffset Undocumented
Method test_parseMemo__long_iso_timestamp_with_tzoffset Undocumented
Method test_parseMemo__invalid_iso_timestamp_value Undocumented
Method test_parseMemo__nonsensical_iso_timestamp_value Undocumented
Method test_parseMemo__descending_sort_order Undocumented
Method test_reverseSortOrder Undocumented
Method test_limitsGroupedByOrderDirection Undocumented
Method test_lessThanOrGreaterThanExpression__asc Undocumented
Method test_lessThanOrGreaterThanExpression__desc Undocumented
Method test_equalsExpressionsFromLimits Undocumented
Method test_whereExpressions__asc For ascending sort order, whereExpressions() returns the
Method test_whereExpressions_desc For descending sort order, whereExpressions() returns the
Method test_whereExpressions__two_sort_columns_asc_asc If the ascending sort columns c1, c2 and the memo values
Method test_whereExpressions__two_sort_columns_desc_desc If the descending sort columns c1, c2 and the memo values
Method test_whereExpressions__two_sort_columns_asc_desc If the ascending sort column c1, the descending sort column
Method test_getSlice__forward_without_memo Undocumented
Method test_getSlice__forward_with_memo Undocumented
Method test_getSlice__backward_without_memo Undocumented
Method test_getSlice_backward_with_memo Undocumented
Method makeResultSetWithPartiallyIdenticalSortData Undocumented
Method test_getSlice__multiple_sort_columns Undocumented
Method test_getSlice__decorated_resultset Undocumented
Method test_getSlice__returns_ShadowedList Undocumented
Method test_getSlice__backwards_then_forwards Undocumented
Method makeStringSequence Undocumented
Method test_ShadowedList__init Undocumented
Method test_ShadowedList__init__non_sequence_parameter Undocumented
Method test_ShadowedList__init__different_list_lengths Undocumented
Method test_ShadowedList__len Undocumented
Method test_ShadowedList__slice Undocumented
Method test_ShadowedList__getitem Undocumented
Method test_ShadowedList__add Undocumented
Method test_ShadowedList__iterator Undocumented
Method test_ShadowedList__reverse Undocumented
Method test_ShadowedList__reverse__values_and_shadow_values_identical Undocumented
Method test_rough_length Undocumented
Method test_rough_length_first_sort_column_desc Undocumented
Method test_rough_length_decorated_result_set Undocumented
Method test_rough_length_distinct_query Undocumented
Method test_getSliceByIndex__storm_result_set Undocumented
Method test_getSliceByIndex__decorated_result_set Undocumented
Method assertEmptyResultSetsWorking Undocumented
Method test_StormRangeFactory__EmptyResultSet Undocumented
Method test_StormRangeFactory__empty_real_resultset Undocumented

Inherited from TestCaseWithFactory:

Method getUserBrowser Return a Browser logged in as a fresh user, maybe opened at url.
Method getNonRedirectingBrowser Undocumented
Method createBranchAtURL Create a branch at the supplied URL.
Method create_branch_and_tree Create a database branch, bzr branch and bzr checkout.
Method createBzrBranch Create a bzr branch for a database branch.
Static Method getBranchPath Return the path of the branch in the mirrored area.
Method useTempBzrHome Undocumented
Method useBzrBranches Prepare for using bzr branches.

Inherited from TestCase (via TestCaseWithFactory):

Method becomeDbUser Commit, then log into the database as dbuser.
Method __str__ The string representation of a test is its id.
Method useContext Use the supplied context in this test.
Method makeTemporaryDirectory Create a temporary directory, and return its path.
Method installKarmaRecorder Set up and return a KarmaRecorder.
Method assertProvides Assert 'obj' correctly provides 'interface'.
Method assertNotifies Assert that a callable performs a given notification.
Method assertNoNotification Assert that no notifications are generated by the callable.
Method assertSqlAttributeEqualsDate Fail unless the value of the attribute is equal to the date.
Method assertTextMatchesExpressionIgnoreWhitespace Undocumented
Method assertIsInstance Assert that an instance is an instance of assert_class.
Method assertIsNot Assert that expected is not the same object as observed.
Method assertContentEqual Assert that 'iter1' has the same content as 'iter2'.
Method assertRaisesWithContent Check if the given exception is raised with given content.
Method assertBetween Assert that 'variable' is strictly between two boundaries.
Method assertVectorEqual Apply assertEqual to all given pairs in one go.
Method expectedLog Expect a log to be written that matches the regex.
Method pushConfig Push some key-value pairs into a section of the config.
Method attachOopses Undocumented
Method attachLibrarianLog Include the logChunks from fixture in the test details.
Method assertStatementCount Assert that the expected number of SQL statements occurred.
Method useTempDir Use a temporary directory for this test.
Method assertEmailHeadersEqual Assert that two email headers are equal.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method checkPermissions Check if the used_permissions match expected_permissions.
Method assertEmailQueueLength Pop the email queue, assert its length, and return it.
Method _unfoldEmailHeader Unfold a multiline email header.
def setUp(self):
Undocumented
def makeStormResultSet(self):
Undocumented
def makeDecoratedStormResultSet(self):
Undocumented
def test_StormRangeFactory_implements_IRangeFactory(self):
Undocumented
def test_StormRangeFactory_needs__ordered_result_set(self):
Undocumented
def test_getOrderValuesFor__one_sort_column(self):
Undocumented
def test_getOrderValuesFor__two_sort_columns(self):
Undocumented
def test_getOrderValuesFor__string_as_sort_expression(self):
Undocumented
def test_getOrderValuesFor__generic_storm_expression_as_sort_expr(self):
Undocumented
def test_getOrderValuesFor__decorated_result_set(self):
Undocumented
def test_getOrderValuesFor__value_from_second_element_of_result_row(self):
Undocumented
def test_getOrderValuesFor__descending_sort_order(self):
Undocumented
def test_getOrderValuesFor__table_not_included_in_results(self):
Undocumented
def test_DatetimeJSONEncoder(self):
Undocumented
def test_getEndpointMemos(self):
Undocumented
def test_getEndpointMemos__decorated_result_set(self):
Undocumented
def logError(self, message):
Undocumented
def test_parseMemo__empty_value(self):
Undocumented
def test_parseMemo__json_error(self):
Undocumented
def test_parseMemo__json_no_sequence(self):
Undocumented
def test_parseMemo__wrong_list_length(self):
Undocumented
def test_parseMemo__memo_type_check(self):
Undocumented
def test_parseMemo__valid_data(self):
Undocumented
def test_parseMemo__short_iso_timestamp(self):
Undocumented
def test_parseMemo__long_iso_timestamp(self):
Undocumented
def test_parseMemo__short_iso_timestamp_with_tzoffset(self):
Undocumented
def test_parseMemo__long_iso_timestamp_with_tzoffset(self):
Undocumented
def test_parseMemo__invalid_iso_timestamp_value(self):
Undocumented
def test_parseMemo__nonsensical_iso_timestamp_value(self):
Undocumented
def test_parseMemo__descending_sort_order(self):
Undocumented
def test_reverseSortOrder(self):
Undocumented
def test_limitsGroupedByOrderDirection(self):
Undocumented
def test_lessThanOrGreaterThanExpression__asc(self):
Undocumented
def test_lessThanOrGreaterThanExpression__desc(self):
Undocumented
def test_equalsExpressionsFromLimits(self):
Undocumented
def test_whereExpressions__asc(self):
For ascending sort order, whereExpressions() returns the WHERE clause expression > memo.
def test_whereExpressions_desc(self):
For descending sort order, whereExpressions() returns the WHERE clause expression < memo.
def test_whereExpressions__two_sort_columns_asc_asc(self):
If the ascending sort columns c1, c2 and the memo values m1, m2 are specified, whereExpressions() returns a WHERE expressions comparing the tuple (c1, c2) with the memo tuple (m1, m2):

(c1, c2) > (m1, m2)

def test_whereExpressions__two_sort_columns_desc_desc(self):
If the descending sort columns c1, c2 and the memo values m1, m2 are specified, whereExpressions() returns a WHERE expressions comparing the tuple (c1, c2) with the memo tuple (m1, m2):

(c1, c2) < (m1, m2)

def test_whereExpressions__two_sort_columns_asc_desc(self):

If the ascending sort column c1, the descending sort column c2 and the memo values m1, m2 are specified, whereExpressions() returns two expressions where the first expression is

c1 == m1 AND c2 < m2

and the second expression is

c1 > m1
def test_getSlice__forward_without_memo(self):
Undocumented
def test_getSlice__forward_with_memo(self):
Undocumented
def test_getSlice__backward_without_memo(self):
Undocumented
def test_getSlice_backward_with_memo(self):
Undocumented
def makeResultSetWithPartiallyIdenticalSortData(self):
Undocumented
def test_getSlice__multiple_sort_columns(self):
Undocumented
def test_getSlice__decorated_resultset(self):
Undocumented
def test_getSlice__returns_ShadowedList(self):
Undocumented
def test_getSlice__backwards_then_forwards(self):
Undocumented
def makeStringSequence(self, sequence):
Undocumented
def test_ShadowedList__init(self):
Undocumented
def test_ShadowedList__init__non_sequence_parameter(self):
Undocumented
def test_ShadowedList__init__different_list_lengths(self):
Undocumented
def test_ShadowedList__len(self):
Undocumented
def test_ShadowedList__slice(self):
Undocumented
def test_ShadowedList__getitem(self):
Undocumented
def test_ShadowedList__add(self):
Undocumented
def test_ShadowedList__iterator(self):
Undocumented
def test_ShadowedList__reverse(self):
Undocumented
def test_ShadowedList__reverse__values_and_shadow_values_identical(self):
Undocumented
def test_rough_length(self):
Undocumented
def test_rough_length_first_sort_column_desc(self):
Undocumented
def test_rough_length_decorated_result_set(self):
Undocumented
def test_rough_length_distinct_query(self):
Undocumented
def test_getSliceByIndex__storm_result_set(self):
Undocumented
def test_getSliceByIndex__decorated_result_set(self):
Undocumented
def assertEmptyResultSetsWorking(self, range_factory):
Undocumented
def test_StormRangeFactory__EmptyResultSet(self):
Undocumented
def test_StormRangeFactory__empty_real_resultset(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.