'Unified create and check code for the tests here.'

def create_and_check(self, num_attempts=None, last_submission_time=None, submission_wait_seconds=None, considered_now=None, skip_submit_problem=False):

    module = CapaFactoryWithDelay.create(attempts=num_attempts, max_attempts=99, last_submission_time=last_submission_time, submission_wait_seconds=submission_wait_seconds)
    module.done = False
    get_request_dict = {CapaFactoryWithDelay.input_key(): '3.14'}
    if skip_submit_problem:
        return (module, None)
    if (considered_now is not None):
        result = module.submit_problem(get_request_dict, considered_now)
    else:
        result = module.submit_problem(get_request_dict)
    return (module, result)
