Module Expr Str ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list decorator_list
N/A N/A Models for serialization of tests. client.sources.common core Test N/A N/A core Serializable N/A N/A name N/A N/A core String N/A points N/A N/A core Float N/A partner N/A N/A core String optional True run N/A N/A self env N/A N/A N/A Subclasses should override this method to run tests.

        NOTE: env is intended only for use with the programmatic API for
        Python OK tests.
         N/A NotImplementedError N/A score N/A N/A self N/A N/A N/A Subclasses should override this method to score the test. N/A NotImplementedError N/A unlock N/A N/A self interact N/A N/A N/A Subclasses should override this method to lock the test. N/A NotImplementedError N/A lock N/A N/A self hash_fn N/A N/A N/A Subclasses should override this method to lock the test. N/A NotImplementedError N/A dump N/A N/A self N/A N/A N/A Subclasses should override this method for serialization. N/A NotImplementedError N/A N/A Case N/A N/A core Serializable N/A N/A Abstract case class. N/A hidden N/A N/A core Boolean default False N/A locked N/A N/A core Boolean optional True run N/A N/A self N/A N/A N/A Subclasses should override this method for running a test case.

        RETURNS:
        bool; True if the test case passes, False otherwise.
         N/A NotImplementedError N/A lock N/A N/A self hash_fn N/A N/A N/A Subclasses should override this method for locking a test case.

        This method should mutate the object into a locked state.

        PARAMETERS:
        hash_fn -- function; computes the hash code of a given string.
         N/A NotImplementedError N/A unlock N/A N/A self unique_id_prefix case_id interact N/A N/A N/A Subclasses should override this method for unlocking a test case.

        It is the responsibility of the the subclass to make any changes to the
        test case, including setting its locked field to False.

        PARAMETERS:
        unique_id_prefix -- string; an identifier for this Case, for purposes of
                            analytics.
        case_id          -- string; an identifier for this Case, for purposes of
                            analytics.
        interact         -- function; handles user interaction during the unlocking
                            phase.
         N/A NotImplementedError N/A N/A