SYMBOL INDEX (1188 symbols across 152 files) FILE: src/contracting/client.py class AbstractContract (line 21) | class AbstractContract: method __init__ (line 22) | def __init__(self, name, signer, environment, executor: Executor, func... method keys (line 49) | def keys(self): method quick_read (line 57) | def quick_read(self, variable, key=None, args=None): method quick_write (line 70) | def quick_write(self, variable, key=None, value=None, args=None): method run_private_function (line 85) | def run_private_function(self, f, signer=None, environment=None, **kwa... method __getattr__ (line 114) | def __getattr__(self, item): method now (line 143) | def now(self): method _abstract_function_call (line 147) | def _abstract_function_call( class ContractingClient (line 189) | class ContractingClient: method __init__ (line 190) | def __init__( method set_submission_contract (line 219) | def set_submission_contract(self, filename=None, commit=True): method flush (line 240) | def flush(self): method get_contract (line 249) | def get_contract(self, name): method closure_to_code_string (line 274) | def closure_to_code_string(self, f): method lint (line 291) | def lint(self, f, raise_errors=False): method compile (line 307) | def compile(self, f): method submit (line 314) | def submit(self, f, name=None, metering=None, owner=None, constructor_... method get_contracts (line 337) | def get_contracts(self): method get_var (line 344) | def get_var(self, contract, variable, arguments=[], mark=False): method set_var (line 347) | def set_var(self, contract, variable, arguments=[], value=None, mark=F... FILE: src/contracting/compilation/compiler.py class ContractingCompiler (line 8) | class ContractingCompiler(ast.NodeTransformer): method __init__ (line 9) | def __init__(self, module_name='__main__', linter=Linter()): method parse (line 18) | def parse(self, source: str, lint=True): method privatize (line 51) | def privatize(s): method compile (line 54) | def compile(self, source: str, lint=True): method parse_to_code (line 61) | def parse_to_code(self, source, lint=True): method visit_FunctionDef (line 66) | def visit_FunctionDef(self, node): method visit_Assign (line 97) | def visit_Assign(self, node): method visit_Name (line 110) | def visit_Name(self, node): method visit_Expr (line 114) | def visit_Expr(self, node): method visit_Num (line 118) | def visit_Num(self, node): FILE: src/contracting/compilation/linter.py class Linter (line 15) | class Linter(ast.NodeVisitor): method __init__ (line 17) | def __init__(self): method ast_types (line 30) | def ast_types(self, t, lnum): method not_system_variable (line 36) | def not_system_variable(self, v, lnum): method no_nested_imports (line 42) | def no_nested_imports(self, node): method visit_Name (line 49) | def visit_Name(self, node): method visit_Attribute (line 65) | def visit_Attribute(self, node): method visit_Import (line 74) | def visit_Import(self, node): method visit_ImportFrom (line 82) | def visit_ImportFrom(self, node): method visit_ClassDef (line 88) | def visit_ClassDef(self, node): method visit_AsyncFunctionDef (line 95) | def visit_AsyncFunctionDef(self, node): method visit_Assign (line 103) | def visit_Assign(self, node): method visit_AugAssign (line 134) | def visit_AugAssign(self, node): method visit_Call (line 139) | def visit_Call(self, node: ast.Call): method generic_visit (line 150) | def generic_visit(self, node): method visit_Num (line 160) | def visit_Num(self, node): method visit_FunctionDef (line 167) | def visit_FunctionDef(self, node): method annotation_types (line 233) | def annotation_types(self, t, lnum): method check_return_types (line 243) | def check_return_types(self, t, lnum): method _reset (line 249) | def _reset(self): method _final_checks (line 260) | def _final_checks(self): method _collect_function_defs (line 278) | def _collect_function_defs(self, root): method check (line 289) | def check(self, ast_tree): method dump_violations (line 300) | def dump_violations(self): FILE: src/contracting/compilation/parser.py function methods_for_contract (line 4) | def methods_for_contract(contract_code: str): function variables_for_contract (line 34) | def variables_for_contract(contract_code: str): FILE: src/contracting/contracts/proxythis.py function proxythis (line 2) | def proxythis(con: str): function nestedproxythis (line 6) | def nestedproxythis(con: str): function noproxy (line 10) | def noproxy(): FILE: src/contracting/contracts/submission.s.py function submit_contract (line 2) | def submit_contract(name: str, code: str, owner: Any=None, constructor_a... function change_developer (line 20) | def change_developer(contract: str, new_developer: str): FILE: src/contracting/contracts/thistest2.py function exported (line 2) | def exported(): function getthis (line 6) | def getthis(): function nested_exported (line 10) | def nested_exported(): FILE: src/contracting/execution/executor.py class Executor (line 13) | class Executor: method __init__ (line 14) | def __init__(self, method wipe_modules (line 39) | def wipe_modules(self): method execute (line 43) | def execute(self, sender, contract_name, function_name, kwargs, FILE: src/contracting/execution/module.py function is_valid_import (line 22) | def is_valid_import(name): function restricted_import (line 28) | def restricted_import(name, globals=None, locals=None, fromlist=(), leve... function enable_restricted_imports (line 37) | def enable_restricted_imports(): function disable_restricted_imports (line 42) | def disable_restricted_imports(): function uninstall_builtins (line 46) | def uninstall_builtins(): function install_database_loader (line 54) | def install_database_loader(driver=Driver()): function uninstall_database_loader (line 60) | def uninstall_database_loader(): function install_system_contracts (line 66) | def install_system_contracts(directory=''): class DatabaseFinder (line 76) | class DatabaseFinder: method find_spec (line 79) | def find_spec(self, fullname, path=None, target=None): class DatabaseLoader (line 88) | class DatabaseLoader(Loader): method __init__ (line 89) | def __init__(self, d=Driver()): method create_module (line 92) | def create_module(self, spec): method exec_module (line 95) | def exec_module(self, module): method module_repr (line 123) | def module_repr(self, module): FILE: src/contracting/execution/runtime.py class Context (line 10) | class Context: method __init__ (line 11) | def __init__(self, base_state, maxlen=constants.RECURSION_LIMIT): method _context_changed (line 17) | def _context_changed(self, contract): method _get_state (line 22) | def _get_state(self): method _add_state (line 27) | def _add_state(self, state: dict): method _ins_state (line 32) | def _ins_state(self): method _pop_state (line 36) | def _pop_state(self): method _reset (line 43) | def _reset(self): method this (line 48) | def this(self): method caller (line 52) | def caller(self): method signer (line 56) | def signer(self): method owner (line 60) | def owner(self): method entry (line 64) | def entry(self): method submission_name (line 68) | def submission_name(self): class Runtime (line 83) | class Runtime: method set_up (line 103) | def set_up(cls, stmps, meter): method clean_up (line 112) | def clean_up(cls): method deduct_read (line 128) | def deduct_read(cls, key, value): method deduct_write (line 135) | def deduct_write(cls, key, value): FILE: src/contracting/execution/tracer.py class Tracer (line 30) | class Tracer: method __init__ (line 31) | def __init__(self): method start (line 42) | def start(self): method stop (line 48) | def stop(self): method reset (line 53) | def reset(self): method set_stamp (line 61) | def set_stamp(self, stamp): method add_cost (line 64) | def add_cost(self, new_cost): method get_stamp_used (line 70) | def get_stamp_used(self): method get_last_frame_mem_usage (line 73) | def get_last_frame_mem_usage(self): method get_total_mem_usage (line 76) | def get_total_mem_usage(self): method is_started (line 79) | def is_started(self): method get_memory_usage (line 82) | def get_memory_usage(self): method trace_func (line 88) | def trace_func(self, frame, event, arg): method get_opcode (line 133) | def get_opcode(self, code, offset): FILE: src/contracting/stdlib/bridge/access.py class __export (line 7) | class __export(ContextDecorator): method __init__ (line 8) | def __init__(self, contract): method __enter__ (line 11) | def __enter__(self, *args, **kwargs): method __exit__ (line 33) | def __exit__(self, *args, **kwargs): FILE: src/contracting/stdlib/bridge/crypto.py function verify (line 5) | def verify(vk: str, msg: str, signature: str): function key_is_valid (line 18) | def key_is_valid(key: str): FILE: src/contracting/stdlib/bridge/decimal.py function make_min_decimal_str (line 18) | def make_min_decimal_str(prec): function make_max_decimal_str (line 21) | def make_max_decimal_str(prec): function neg_sci_not (line 25) | def neg_sci_not(s: str): function fix_precision (line 46) | def fix_precision(x: Decimal): class ContractingDecimal (line 52) | class ContractingDecimal: method _get_other (line 53) | def _get_other(self, other): method __init__ (line 60) | def __init__(self, a): method __bool__ (line 73) | def __bool__(self): method __eq__ (line 76) | def __eq__(self, other): method __lt__ (line 79) | def __lt__(self, other): method __le__ (line 82) | def __le__(self, other): method __gt__ (line 85) | def __gt__(self, other): method __ge__ (line 88) | def __ge__(self, other): method __str__ (line 91) | def __str__(self): method __repr__ (line 94) | def __repr__(self): method __neg__ (line 97) | def __neg__(self): method __pos__ (line 100) | def __pos__(self): method __abs__ (line 103) | def __abs__(self): method __add__ (line 106) | def __add__(self, other): method __radd__ (line 109) | def __radd__(self, other): method __sub__ (line 112) | def __sub__(self, other): method __rsub__ (line 115) | def __rsub__(self, other): method __mul__ (line 118) | def __mul__(self, other): method __rmul__ (line 121) | def __rmul__(self, other): method __truediv__ (line 124) | def __truediv__(self, other): method __rtruediv__ (line 127) | def __rtruediv__(self, other): method __mod__ (line 130) | def __mod__(self, other): method __rmod__ (line 133) | def __rmod__(self, other): method __floordiv__ (line 136) | def __floordiv__(self, other): method __rfloordiv__ (line 139) | def __rfloordiv__(self, other): method __pow__ (line 142) | def __pow__(self, other): method __rpow__ (line 145) | def __rpow__(self, other): method __int__ (line 148) | def __int__(self): method __float__ (line 151) | def __float__(self): method __round__ (line 154) | def __round__(self, n=None): FILE: src/contracting/stdlib/bridge/hashing.py function sha3 (line 10) | def sha3(hex_str: str): function sha256 (line 24) | def sha256(hex_str: str): FILE: src/contracting/stdlib/bridge/imports.py function extract_closure (line 11) | def extract_closure(fn): class Func (line 16) | class Func: method __init__ (line 17) | def __init__(self, name, args=(), private=False): method is_of (line 25) | def is_of(self, f: FunctionType): class Var (line 38) | class Var: method __init__ (line 39) | def __init__(self, name, t): method is_of (line 44) | def is_of(self, v): function import_module (line 50) | def import_module(name): function enforce_interface (line 68) | def enforce_interface(m: ModuleType, interface: list): function owner_of (line 88) | def owner_of(m: ModuleType): FILE: src/contracting/stdlib/bridge/orm.py class V (line 6) | class V(Variable): method __init__ (line 7) | def __init__(self, *args, **kwargs): class H (line 13) | class H(Hash): method __init__ (line 14) | def __init__(self, *args, **kwargs): class FV (line 20) | class FV(ForeignVariable): method __init__ (line 21) | def __init__(self, *args, **kwargs): class FH (line 27) | class FH(ForeignHash): method __init__ (line 28) | def __init__(self, *args, **kwargs): class C (line 34) | class C(Contract): method __init__ (line 35) | def __init__(self, *args, **kwargs): class LE (line 41) | class LE(LogEvent): method __init__ (line 42) | def __init__(self, *args, **kwargs): FILE: src/contracting/stdlib/bridge/random.py class Seeded (line 20) | class Seeded: function seed (line 24) | def seed(aux_salt=None): function getrandbits (line 46) | def getrandbits(k): function shuffle (line 59) | def shuffle(l): function randrange (line 64) | def randrange(k): function randint (line 69) | def randint(a, b): function choice (line 74) | def choice(l): function choices (line 79) | def choices(l, k): FILE: src/contracting/stdlib/bridge/time.py function get_raw_seconds (line 15) | def get_raw_seconds(weeks, days, hours, minutes, seconds): class Datetime (line 26) | class Datetime: method __init__ (line 27) | def __init__(self, year, month, day, hour=0, minute=0, second=0, micro... method __lt__ (line 46) | def __lt__(self, other): method __le__ (line 51) | def __le__(self, other): method __eq__ (line 56) | def __eq__(self, other): method __ge__ (line 61) | def __ge__(self, other): method __gt__ (line 66) | def __gt__(self, other): method __ne__ (line 71) | def __ne__(self, other): method __sub__ (line 76) | def __sub__(self, other): method __add__ (line 82) | def __add__(self, other): method __str__ (line 87) | def __str__(self): method __repr__ (line 90) | def __repr__(self): method _from_datetime (line 94) | def _from_datetime(cls, d: dt): method strptime (line 104) | def strptime(cls, date_string, format): class Timedelta (line 108) | class Timedelta: method __init__ (line 109) | def __init__(self, weeks=0, method __lt__ (line 124) | def __lt__(self, other): method __le__ (line 129) | def __le__(self, other): method __eq__ (line 134) | def __eq__(self, other): method __ge__ (line 139) | def __ge__(self, other): method __gt__ (line 144) | def __gt__(self, other): method __ne__ (line 149) | def __ne__(self, other): method __add__ (line 155) | def __add__(self, other): method __sub__ (line 166) | def __sub__(self, other): method __mul__ (line 177) | def __mul__(self, other): method __str__ (line 187) | def __str__(self): method __repr__ (line 190) | def __repr__(self): method seconds (line 195) | def seconds(self): method minutes (line 199) | def minutes(self): method hours (line 203) | def hours(self): method days (line 207) | def days(self): method weeks (line 211) | def weeks(self): FILE: src/contracting/stdlib/env.py function gather (line 18) | def gather(): FILE: src/contracting/storage/contract.py class Contract (line 10) | class Contract: method __init__ (line 11) | def __init__(self, driver: Driver = _driver): method submit (line 14) | def submit(self, name, code, owner=None, constructor_args={}, develope... FILE: src/contracting/storage/driver.py class Driver (line 31) | class Driver: method __init__ (line 32) | def __init__(self, bypass_cache=False, storage_home=constants.STORAGE_... method __build_directories (line 44) | def __build_directories(self): method __parse_key (line 48) | def __parse_key(self, key): method __filename_to_path (line 64) | def __filename_to_path(self, filename): method __get_files (line 70) | def __get_files(self): method is_file (line 73) | def is_file(self, filename): method get (line 77) | def get(self, key: str, save: bool = True): method set (line 91) | def set(self, key, value, is_txn_write=False): method find (line 102) | def find(self, key: str): method __get_keys_from_file (line 123) | def __get_keys_from_file(self, filename): method keys_from_disk (line 126) | def keys_from_disk(self, prefix=None, length=0): method iter_from_disk (line 148) | def iter_from_disk(self, prefix="", length=0): method value_from_disk (line 164) | def value_from_disk(self, key): method items (line 172) | def items(self, prefix=""): method keys (line 204) | def keys(self, prefix=""): method values (line 207) | def values(self, prefix=""): method make_key (line 210) | def make_key(self, contract, variable, args=[]): method set_var (line 216) | def set_var(self, contract, variable, arguments=[], value=None, mark=T... method get_var (line 224) | def get_var(self, contract, variable, arguments=[], mark=True): method get_owner (line 232) | def get_owner(self, name): method get_time_submitted (line 238) | def get_time_submitted(self, name): method get_compiled (line 241) | def get_compiled(self, name): method get_contract (line 244) | def get_contract(self, name): method set_contract (line 247) | def set_contract( method delete_contract (line 266) | def delete_contract(self, name): method get_contract_files (line 279) | def get_contract_files(self): method delete_key_from_disk (line 285) | def delete_key_from_disk(self, key): method flush_cache (line 294) | def flush_cache(self): method flush_disk (line 302) | def flush_disk(self): method flush_file (line 307) | def flush_file(self, filename): method set_event (line 312) | def set_event(self, event): method flush_full (line 315) | def flush_full(self): method delete (line 322) | def delete(self, key): method rollback (line 328) | def rollback(self, nanos=None): method commit (line 350) | def commit(self): method hard_apply (line 367) | def hard_apply(self, nanos): method get_all_contract_state (line 402) | def get_all_contract_state(self): method get_run_state (line 418) | def get_run_state(self): method clear_transaction_writes (line 434) | def clear_transaction_writes(self): method clear_events (line 440) | def clear_events(self): FILE: src/contracting/storage/encoder.py function safe_repr (line 19) | def safe_repr(obj, max_len=1024): class Encoder (line 30) | class Encoder(json.JSONEncoder): method default (line 31) | def default(self, o, *args): function encode_int (line 60) | def encode_int(value: int): function encode_ints_in_dict (line 69) | def encode_ints_in_dict(data: dict): function encode (line 92) | def encode(data: str): function as_object (line 108) | def as_object(d): function decode (line 124) | def decode(data): function make_key (line 137) | def make_key(contract, variable, args=[]): function encode_kv (line 144) | def encode_kv(key, value): function decode_kv (line 156) | def decode_kv(key, value): function convert (line 167) | def convert(k, v): function convert_dict (line 181) | def convert_dict(d): FILE: src/contracting/storage/hdf5.py function get_file_lock (line 17) | def get_file_lock(file_path): function get_value (line 22) | def get_value(file_path, group_name): function get_block (line 26) | def get_block(file_path, group_name): function get_attr (line 30) | def get_attr(file_path, group_name, attr_name): function get_groups (line 44) | def get_groups(file_path): function set (line 54) | def set(file_path, group_name, value, blocknum, timeout=20): function write_attr (line 74) | def write_attr(file_or_path, group_name, attr_name, value, timeout=20): function _write_attr_to_file (line 87) | def _write_attr_to_file(file, group_name, attr_name, value, timeout): function delete (line 102) | def delete(file_path, group_name, timeout=20): function set_value_to_disk (line 118) | def set_value_to_disk(file_path, group_name, value, block_num=None, time... function delete_key_from_disk (line 127) | def delete_key_from_disk(file_path, group_name, timeout=20): function get_value_from_disk (line 131) | def get_value_from_disk(file_path, group_name): function get_all_keys_from_file (line 136) | def get_all_keys_from_file(file_path): FILE: src/contracting/storage/orm.py class Datum (line 11) | class Datum: method __init__ (line 12) | def __init__(self, contract, name, driver: Driver): class Variable (line 17) | class Variable(Datum): method __init__ (line 18) | def __init__(self, contract, name, driver: Driver = driver, t=None, de... method set (line 28) | def set(self, value): method get (line 37) | def get(self): class Hash (line 46) | class Hash(Datum): method __init__ (line 47) | def __init__(self, contract, name, driver: Driver = driver, default_va... method _set (line 52) | def _set(self, key, value): method _get (line 55) | def _get(self, item): method _validate_key (line 70) | def _validate_key(self, key): method _prefix_for_args (line 100) | def _prefix_for_args(self, args): method all (line 108) | def all(self, *args): method _items (line 112) | def _items(self, *args): method clear (line 116) | def clear(self, *args): method __setitem__ (line 122) | def __setitem__(self, key, value): method __getitem__ (line 127) | def __getitem__(self, key): method __contains__ (line 131) | def __contains__(self, key): class ForeignVariable (line 135) | class ForeignVariable(Variable): method __init__ (line 136) | def __init__( method set (line 142) | def set(self, value): class ForeignHash (line 146) | class ForeignHash(Hash): method __init__ (line 147) | def __init__( method _set (line 153) | def _set(self, key, value): method __setitem__ (line 156) | def __setitem__(self, key, value): method __getitem__ (line 159) | def __getitem__(self, item): method clear (line 162) | def clear(self, *args): class LogEvent (line 166) | class LogEvent(Datum): method __init__ (line 173) | def __init__(self, contract, name, event, params, driver: Driver = dri... method write_event (line 196) | def write_event(self, event_data): method __call__ (line 261) | def __call__(self, data): FILE: tests/integration/test_atomic_swap.py function submission_kwargs_for_file (line 7) | def submission_kwargs_for_file(f): class TestAtomicSwapContract (line 32) | class TestAtomicSwapContract(TestCase): method setUp (line 33) | def setUp(self): method tearDown (line 59) | def tearDown(self): method test_initiate_not_enough_approved (line 64) | def test_initiate_not_enough_approved(self): method test_initiate_transfers_coins_correctly (line 76) | def test_initiate_transfers_coins_correctly(self): method test_initiate_writes_to_correct_key_and_properly (line 93) | def test_initiate_writes_to_correct_key_and_properly(self): method test_redeem_on_wrong_secret_fails (line 108) | def test_redeem_on_wrong_secret_fails(self): method test_redeem_on_wrong_sender_fails (line 122) | def test_redeem_on_wrong_sender_fails(self): method test_past_expiration_fails (line 136) | def test_past_expiration_fails(self): method test_successful_redeem_transfers_coins_correctly (line 153) | def test_successful_redeem_transfers_coins_correctly(self): method test_successful_redeem_deletes_entry (line 173) | def test_successful_redeem_deletes_entry(self): method test_refund_works (line 192) | def test_refund_works(self): method test_refund_too_early_fails (line 212) | def test_refund_too_early_fails(self): method test_refund_participant_is_signer_fails (line 229) | def test_refund_participant_is_signer_fails(self): method test_refund_fails_with_wrong_secret (line 246) | def test_refund_fails_with_wrong_secret(self): method test_refund_resets_swaps (line 263) | def test_refund_resets_swaps(self): method test_trying_to_call_private_function_fails (line 283) | def test_trying_to_call_private_function_fails(self): FILE: tests/integration/test_builtins_locked_off.py class TestBuiltinsLockedOff (line 5) | class TestBuiltinsLockedOff(TestCase): method setUp (line 6) | def setUp(self): method tearDown (line 9) | def tearDown(self): method test_if_builtin_can_be_submitted (line 13) | def test_if_builtin_can_be_submitted(self): method test_if_non_builtin_can_be_submitted (line 22) | def test_if_non_builtin_can_be_submitted(self): class TestMathBuiltinsLockedOff (line 26) | class TestMathBuiltinsLockedOff(TestCase): method setUp (line 27) | def setUp(self): method tearDown (line 30) | def tearDown(self): method test_if_builtin_can_be_submitted (line 33) | def test_if_builtin_can_be_submitted(self): class TestDatabaseLoaderLoadsFirst (line 43) | class TestDatabaseLoaderLoadsFirst(TestCase): method setUp (line 44) | def setUp(self): method tearDown (line 47) | def tearDown(self): method test_if_builtin_can_be_submitted (line 50) | def test_if_builtin_can_be_submitted(self): class TestDynamicImport (line 65) | class TestDynamicImport(TestCase): method setUp (line 66) | def setUp(self): method tearDown (line 69) | def tearDown(self): method test_if_builtin_can_be_submitted (line 72) | def test_if_builtin_can_be_submitted(self): class TestFloatIssue (line 85) | class TestFloatIssue(TestCase): method setUp (line 86) | def setUp(self): method tearDown (line 89) | def tearDown(self): method test_if_builtin_can_be_submitted (line 92) | def test_if_builtin_can_be_submitted(self): FILE: tests/integration/test_complex_contracts.py function submission_kwargs_for_file (line 9) | def submission_kwargs_for_file(f): class TestComplexContracts (line 34) | class TestComplexContracts(TestCase): method setUp (line 35) | def setUp(self): method tearDown (line 47) | def tearDown(self): method test_token_construction_works (line 50) | def test_token_construction_works(self): method test_token_transfer_works (line 68) | def test_token_transfer_works(self): method test_token_transfer_failure_not_enough_to_send (line 84) | def test_token_transfer_failure_not_enough_to_send(self): method test_token_transfer_to_new_account (line 96) | def test_token_transfer_to_new_account(self): method test_erc20_clone_construction_works (line 110) | def test_erc20_clone_construction_works(self): method test_erc20_clone_transfer_works (line 126) | def test_erc20_clone_transfer_works(self): method test_erc20_clone_transfer_fails (line 141) | def test_erc20_clone_transfer_fails(self): method test_allowance_of_blank (line 155) | def test_allowance_of_blank(self): method test_approve_works_and_allowance_shows (line 166) | def test_approve_works_and_allowance_shows(self): method test_approve_and_transfer_from (line 179) | def test_approve_and_transfer_from(self): method test_failure_after_data_writes_doesnt_commit (line 197) | def test_failure_after_data_writes_doesnt_commit(self): method test_leaky_contract_commits_on_success (line 213) | def test_leaky_contract_commits_on_success(self): method test_time_stdlib_works (line 229) | def test_time_stdlib_works(self): method test_bad_time_contract_not_submittable (line 252) | def test_bad_time_contract_not_submittable(self): method test_json_lists_work (line 268) | def test_json_lists_work(self): method test_time_storage_works (line 280) | def test_time_storage_works(self): method test_hash_sha3_works (line 296) | def test_hash_sha3_works(self): method test_hash_sha256_works (line 311) | def test_hash_sha256_works(self): FILE: tests/integration/test_complex_object_setting.py function contract (line 5) | def contract(): class TestComplexStorage (line 24) | class TestComplexStorage(TestCase): method setUp (line 25) | def setUp(self): method tearDown (line 32) | def tearDown(self): method test_storage (line 35) | def test_storage(self): method test_modify (line 39) | def test_modify(self): FILE: tests/integration/test_constructor_args.py class TestSenecaClientReplacesExecutor (line 6) | class TestSenecaClientReplacesExecutor(TestCase): method setUp (line 7) | def setUp(self): method test_custom_args_works (line 26) | def test_custom_args_works(self): method test_custom_args_overloading (line 35) | def test_custom_args_overloading(self): method test_custom_args_not_enough_args (line 39) | def test_custom_args_not_enough_args(self): FILE: tests/integration/test_contracts/atomic_swaps.s.py function initiate (line 6) | def initiate(participant: str, expiration: datetime.datetime, hashlock: ... function redeem (line 18) | def redeem(secret: str): function refund (line 34) | def refund(participant: str, secret: str): function test (line 54) | def test(): FILE: tests/integration/test_contracts/bad_time.s.py function ha (line 4) | def ha(): FILE: tests/integration/test_contracts/bastardcoin.s.py function seed (line 4) | def seed(): function transfer (line 9) | def transfer(amount: int, to: str): function balance_of (line 17) | def balance_of(account: str): FILE: tests/integration/test_contracts/builtin_lib.s.py function hahaha (line 4) | def hahaha(): function return_token (line 8) | def return_token(): FILE: tests/integration/test_contracts/child_test.s.py function get_value (line 2) | def get_value(): FILE: tests/integration/test_contracts/con_pass_hash.s.py function store (line 6) | def store(k: Any, v: Any): function get (line 10) | def get(k: Any): FILE: tests/integration/test_contracts/construct_function_works.s.py function get (line 4) | def get(): function seed (line 8) | def seed(): FILE: tests/integration/test_contracts/constructor_args_contract.s.py function seed (line 5) | def seed(a, b): function get (line 10) | def get(): FILE: tests/integration/test_contracts/contracting.s.py function hello (line 2) | def hello(): FILE: tests/integration/test_contracts/currency.s.py function seed (line 4) | def seed(): function transfer (line 9) | def transfer(amount: int, to: str): function balance (line 21) | def balance(account: str): FILE: tests/integration/test_contracts/dater.py function replicate (line 6) | def replicate(d: datetime.datetime): function subtract (line 11) | def subtract(d1: datetime.datetime, d2: datetime.datetime): FILE: tests/integration/test_contracts/dynamic_import.py function called_from_a_far (line 2) | def called_from_a_far(): FILE: tests/integration/test_contracts/dynamic_import.s.py function import_thing (line 2) | def import_thing(name: str): FILE: tests/integration/test_contracts/dynamic_importing.s.py function balance_for_token (line 2) | def balance_for_token(tok: str, account: str): function only_erc20 (line 7) | def only_erc20(tok: str, account: str): function is_erc20_compatible (line 14) | def is_erc20_compatible(tok: str): function enforce_erc20 (line 30) | def enforce_erc20(m): FILE: tests/integration/test_contracts/erc20_clone.s.py function seed (line 5) | def seed(): function transfer (line 11) | def transfer(amount: int, to: str): function balance_of (line 19) | def balance_of(account: str): function total_supply (line 23) | def total_supply(): function allowance (line 27) | def allowance(owner: str, spender: str): function approve (line 31) | def approve(amount: str, to: str): function transfer_from (line 37) | def transfer_from(amount: int, to: str, main_account: str): FILE: tests/integration/test_contracts/exception.py function seed (line 4) | def seed(): function transfer (line 9) | def transfer(amount: int, to: str): function balance_of (line 19) | def balance_of(account: str): FILE: tests/integration/test_contracts/float_issue.s.py function rand_vect (line 4) | def rand_vect(): function dot_prod_grid (line 9) | def dot_prod_grid(x, y, vx, vy): function smootherstep (line 21) | def smootherstep(x): function interp (line 25) | def interp(x, a, b): function seed (line 30) | def seed(): function get (line 34) | def get(x: float, y: float): FILE: tests/integration/test_contracts/foreign_thing.s.py function read_H_hello (line 5) | def read_H_hello(): function read_H_something (line 9) | def read_H_something(): function read_V (line 13) | def read_V(): function set_H (line 17) | def set_H(k: str, v: Any): function set_V (line 21) | def set_V(v: Any): FILE: tests/integration/test_contracts/hashing_works.s.py function t_sha3 (line 2) | def t_sha3(s: str): function t_sha256 (line 6) | def t_sha256(s: str): FILE: tests/integration/test_contracts/i_use_env.s.py function env_var (line 2) | def env_var(): FILE: tests/integration/test_contracts/import_test.s.py function woo (line 4) | def woo(): FILE: tests/integration/test_contracts/import_this.s.py function howdy (line 2) | def howdy(): FILE: tests/integration/test_contracts/importing_that.s.py function test (line 4) | def test(): FILE: tests/integration/test_contracts/inf_loop.s.py function seed (line 2) | def seed(): function dummy (line 8) | def dummy(): FILE: tests/integration/test_contracts/json_tests.s.py function seed (line 4) | def seed(): function get_some (line 8) | def get_some(): FILE: tests/integration/test_contracts/leaky.s.py function seed (line 5) | def seed(): function transfer (line 11) | def transfer(amount: int, to: str): function balance_of (line 21) | def balance_of(account: str): FILE: tests/integration/test_contracts/mathtime.s.py function seed (line 6) | def seed(): function get_pi (line 11) | def get_pi(): FILE: tests/integration/test_contracts/modules/all_in_one.s.py function call_me (line 2) | def call_me(): function call_me_again (line 6) | def call_me_again(): function call_me_again_again (line 10) | def call_me_again_again(): FILE: tests/integration/test_contracts/modules/dynamic_import.s.py function called_from_a_far (line 2) | def called_from_a_far(): function called_from_a_far_stacked (line 7) | def called_from_a_far_stacked(): FILE: tests/integration/test_contracts/modules/module1.s.py function get_context (line 19) | def get_context(): FILE: tests/integration/test_contracts/modules/module2.s.py function get_context (line 5) | def get_context(): FILE: tests/integration/test_contracts/modules/module3.s.py function get_context (line 5) | def get_context(): FILE: tests/integration/test_contracts/modules/module4.s.py function get_context (line 2) | def get_context(): FILE: tests/integration/test_contracts/modules/module5.s.py function get_context (line 4) | def get_context(): FILE: tests/integration/test_contracts/modules/module6.s.py function get_context (line 2) | def get_context(): FILE: tests/integration/test_contracts/modules/module7.s.py function get_context (line 2) | def get_context(): FILE: tests/integration/test_contracts/modules/module8.s.py function get_context (line 2) | def get_context(): FILE: tests/integration/test_contracts/orm_foreign_hash_contract.s.py function set_fh (line 4) | def set_fh(k: str, v: int): function get_fh (line 8) | def get_fh(k: str): FILE: tests/integration/test_contracts/orm_foreign_key_contract.s.py function set_fv (line 4) | def set_fv(i: int): function get_fv (line 8) | def get_fv(): FILE: tests/integration/test_contracts/orm_hash_contract.s.py function set_h (line 4) | def set_h(k: str, v: int): function get_h (line 8) | def get_h(k: str): FILE: tests/integration/test_contracts/orm_no_contract_access.s.py function set_c (line 4) | def set_c(): FILE: tests/integration/test_contracts/orm_variable_contract.s.py function set_v (line 4) | def set_v(i: int): function get_v (line 8) | def get_v(): FILE: tests/integration/test_contracts/owner_stuff.s.py function get_owner (line 2) | def get_owner(s: str): function owner_of_this (line 7) | def owner_of_this(): FILE: tests/integration/test_contracts/parent_test.s.py function get_val_from_child (line 2) | def get_val_from_child(s: str): FILE: tests/integration/test_contracts/pass_hash.s.py function store_on_behalf (line 2) | def store_on_behalf(H: Any, k: Any, v: Any): FILE: tests/integration/test_contracts/private_methods.s.py function call_private (line 4) | def call_private(): function private (line 7) | def private(): function set (line 11) | def set(k: str, v: int): function set_multi (line 15) | def set_multi(k: str, k2: str, k3: str, v: int): FILE: tests/integration/test_contracts/stubucks.s.py function seed (line 5) | def seed(): function transfer (line 11) | def transfer(amount: int, to: str): function balance_of (line 19) | def balance_of(account: str): function total_supply (line 23) | def total_supply(): function allowance (line 27) | def allowance(owner: str, spender: str): function approve (line 31) | def approve(amount: int, to: str): function transfer_from (line 37) | def transfer_from(amount: int, to: str, main_account: str): FILE: tests/integration/test_contracts/submission.s.py function submit_contract (line 2) | def submit_contract(name: str, code: str, owner: Any=None, constructor_a... function change_developer (line 20) | def change_developer(contract: str, new_developer: str): FILE: tests/integration/test_contracts/tejastokens.s.py function seed (line 5) | def seed(): function transfer (line 11) | def transfer(amount: int, to: str): function balance_of (line 19) | def balance_of(account: str): function total_supply (line 23) | def total_supply(): function allowance (line 27) | def allowance(owner: str, spender: str): function approve (line 31) | def approve(amount: int, to: str): function transfer_from (line 37) | def transfer_from(amount: int, to: str, main_account: str): FILE: tests/integration/test_contracts/thing.s.py function seed (line 5) | def seed(): function nop (line 11) | def nop(): FILE: tests/integration/test_contracts/time.s.py function gt (line 4) | def gt(): function lt (line 8) | def lt(): function eq (line 12) | def eq(): FILE: tests/integration/test_contracts/time_storage.s.py function seed (line 4) | def seed(): function get (line 8) | def get(): FILE: tests/integration/test_datetime_contracts.py class TestSenecaClientReplacesExecutor (line 6) | class TestSenecaClientReplacesExecutor(TestCase): method setUp (line 7) | def setUp(self): method tearDown (line 18) | def tearDown(self): method test_datetime_passed_argument_and_now_are_correctly_compared (line 21) | def test_datetime_passed_argument_and_now_are_correctly_compared(self): method test_datetime_passed_argument_and_now_are_correctly_compared_json (line 24) | def test_datetime_passed_argument_and_now_are_correctly_compared_json(... method test_datetime_subtracts (line 31) | def test_datetime_subtracts(self): FILE: tests/integration/test_dynamic_imports.py class TestDynamicImports (line 6) | class TestDynamicImports(TestCase): method setUp (line 7) | def setUp(self): method tearDown (line 50) | def tearDown(self): method test_successful_submission (line 53) | def test_successful_submission(self): method test_get_stubuck_balances (line 63) | def test_get_stubuck_balances(self): method test_get_tejastokens_balances (line 70) | def test_get_tejastokens_balances(self): method test_get_bastardcoin_balances (line 77) | def test_get_bastardcoin_balances(self): method test_is_erc20 (line 84) | def test_is_erc20(self): method test_get_balances_erc20_enforced_stubucks (line 89) | def test_get_balances_erc20_enforced_stubucks(self): method test_get_balances_erc20_enforced_tejastokens (line 96) | def test_get_balances_erc20_enforced_tejastokens(self): method test_erc20_enforced_fails_for_bastardcoin (line 103) | def test_erc20_enforced_fails_for_bastardcoin(self): method test_owner_of_returns_default (line 107) | def test_owner_of_returns_default(self): method test_ctx_owner_works (line 119) | def test_ctx_owner_works(self): method test_incorrect_owner_prevents_function_call (line 130) | def test_incorrect_owner_prevents_function_call(self): method test_delegate_call_with_owner_works (line 141) | def test_delegate_call_with_owner_works(self): method test_delegate_with_wrong_owner_does_not_work (line 160) | def test_delegate_with_wrong_owner_does_not_work(self): FILE: tests/integration/test_executor_submission_process.py function submission_kwargs_for_file (line 7) | def submission_kwargs_for_file(f): class TestExecutor (line 32) | class TestExecutor(TestCase): method setUp (line 33) | def setUp(self): method tearDown (line 48) | def tearDown(self): method test_submission (line 51) | def test_submission(self): method test_submission_then_function_call (line 72) | def test_submission_then_function_call(self): method test_kwarg_helper (line 91) | def test_kwarg_helper(self): method test_orm_variable_sets_in_contract (line 110) | def test_orm_variable_sets_in_contract(self): method test_orm_variable_gets_in_contract (line 123) | def test_orm_variable_gets_in_contract(self): method test_orm_variable_gets_and_sets_in_contract (line 135) | def test_orm_variable_gets_and_sets_in_contract(self): method test_orm_hash_sets_in_contract (line 148) | def test_orm_hash_sets_in_contract(self): method test_orm_hash_gets_in_contract (line 165) | def test_orm_hash_gets_in_contract(self): method test_orm_hash_gets_and_sets_in_contract (line 177) | def test_orm_hash_gets_and_sets_in_contract(self): method test_orm_foreign_variable_sets_in_contract_doesnt_work (line 194) | def test_orm_foreign_variable_sets_in_contract_doesnt_work(self): method test_orm_foreign_variable_gets_in_contract (line 215) | def test_orm_foreign_variable_gets_in_contract(self): method test_orm_foreign_hash_sets_in_contract_doesnt_work (line 232) | def test_orm_foreign_hash_sets_in_contract_doesnt_work(self): method test_orm_foreign_hash_gets_and_sets_in_contract (line 257) | def test_orm_foreign_hash_gets_and_sets_in_contract(self): method test_orm_contract_not_accessible (line 278) | def test_orm_contract_not_accessible(self): method test_construct_function_sets_properly (line 288) | def test_construct_function_sets_properly(self): method test_import_exported_function_works (line 300) | def test_import_exported_function_works(self): method test_arbitrary_environment_passing_works_via_executor (line 315) | def test_arbitrary_environment_passing_works_via_executor(self): method test_arbitrary_environment_passing_fails_if_not_passed_correctly (line 331) | def test_arbitrary_environment_passing_fails_if_not_passed_correctly(s... FILE: tests/integration/test_executor_transaction_writes.py class TestTransactionWrites (line 8) | class TestTransactionWrites(TestCase): method setUp (line 9) | def setUp(self): method tearDown (line 22) | def tearDown(self): method test_transfers (line 25) | def test_transfers(self): FILE: tests/integration/test_memory_clean_up_after_execution.py function submission_kwargs_for_file (line 11) | def submission_kwargs_for_file(f): class TestMetering (line 36) | class TestMetering(TestCase): method setUp (line 37) | def setUp(self): method tearDown (line 57) | def tearDown(self): FILE: tests/integration/test_misc_contracts.py function too_many_writes (line 8) | def too_many_writes(): function exploit (line 42) | def exploit(): class TestMiscContracts (line 57) | class TestMiscContracts(TestCase): method setUp (line 58) | def setUp(self): method tearDown (line 91) | def tearDown(self): method test_H_values_return (line 94) | def test_H_values_return(self): method test_cant_modify_H (line 101) | def test_cant_modify_H(self): method test_cant_add_H (line 105) | def test_cant_add_H(self): method test_cant_set_V (line 109) | def test_cant_set_V(self): method test_V_returns (line 113) | def test_V_returns(self): method test_single_too_many_writes_fails (line 117) | def test_single_too_many_writes_fails(self): method test_multiple_too_many_writes_fails (line 124) | def test_multiple_too_many_writes_fails(self): method test_failed_once_doesnt_affect_others (line 132) | def test_failed_once_doesnt_affect_others(self): method test_memory_overload (line 141) | def test_memory_overload(self): method test_memory_overload2 (line 149) | def test_memory_overload2(self): method test_memory_exploit (line 157) | def test_memory_exploit(self): class TestPassHash (line 164) | class TestPassHash(TestCase): method setUp (line 165) | def setUp(self): method test_store_value (line 196) | def test_store_value(self): function some_test_contract (line 203) | def some_test_contract(): function import_submission (line 209) | def import_submission(): class TestDeveloperSubmission (line 222) | class TestDeveloperSubmission(TestCase): method setUp (line 223) | def setUp(self): method test_submit_sets_developer (line 236) | def test_submit_sets_developer(self): method test_change_developer_if_developer_works (line 243) | def test_change_developer_if_developer_works(self): method test_change_developer_prevents_new_change (line 254) | def test_change_developer_prevents_new_change(self): method test_cannot_import_submission (line 264) | def test_cannot_import_submission(self): function con_float_thing (line 273) | def con_float_thing(): class TestFloatThing (line 285) | class TestFloatThing(TestCase): method setUp (line 286) | def setUp(self): method test_can_add (line 299) | def test_can_add(self): function a (line 305) | def a(): function module_hack (line 310) | def module_hack(): function class_var (line 319) | def class_var(): function class_hash (line 326) | def class_hash(): function exec_contract (line 333) | def exec_contract(): function type_exploit (line 342) | def type_exploit(): function con_test_one (line 369) | def con_test_one(): function con_test_two (line 381) | def con_test_two(): function test_closure (line 388) | def test_closure(): function test_closure2 (line 401) | def test_closure2(): class TestHackThing (line 416) | class TestHackThing(TestCase): method setUp (line 417) | def setUp(self): method test_can_add (line 430) | def test_can_add(self): method test_cant_submit_class_var (line 439) | def test_cant_submit_class_var(self): method test_cant_submit_class_hash (line 443) | def test_cant_submit_class_hash(self): method test_cant_submit_exec (line 447) | def test_cant_submit_exec(self): method test_cant_submit_type (line 451) | def test_cant_submit_type(self): method test_cant_clear_foreign_hash (line 455) | def test_cant_clear_foreign_hash(self): method test_no_closures (line 464) | def test_no_closures(self): method test_no_closures_work_around (line 468) | def test_no_closures_work_around(self): function con_test_fixed (line 473) | def con_test_fixed(): class TestFixed (line 485) | class TestFixed(TestCase): method setUp (line 486) | def setUp(self): method test_can_multiply (line 499) | def test_can_multiply(self): FILE: tests/integration/test_pixel_game.py function con_coin (line 5) | def con_coin(): class TestCoinContract (line 71) | class TestCoinContract(TestCase): method setUp (line 72) | def setUp(self): method tearDown (line 79) | def tearDown(self): method test_coin_construction (line 82) | def test_coin_construction(self): method test_transfer_not_enough (line 85) | def test_transfer_not_enough(self): method test_transfer_enough (line 89) | def test_transfer_enough(self): method test_balance_of_works (line 93) | def test_balance_of_works(self): method test_total_supply_pre_mint (line 97) | def test_total_supply_pre_mint(self): method test_approve_modified_balances (line 101) | def test_approve_modified_balances(self): method test_allowance_returns_approve (line 105) | def test_allowance_returns_approve(self): method test_transfer_from_failure_not_enough_allowance (line 109) | def test_transfer_from_failure_not_enough_allowance(self): method test_transfer_from_failure_not_enough_in_main_account (line 114) | def test_transfer_from_failure_not_enough_in_main_account(self): method test_transfer_from_success_modified_balance_to_and_allowance (line 119) | def test_transfer_from_success_modified_balance_to_and_allowance(self): method test_mint_fails_if_not_owner (line 127) | def test_mint_fails_if_not_owner(self): method test_mint_succeeds_if_owner_and_modifies_balance_and_supply (line 131) | def test_mint_succeeds_if_owner_and_modifies_balance_and_supply(self): method test_change_ownership_modifies_owner (line 137) | def test_change_ownership_modifies_owner(self): method test_change_ownership_only_prior_owner (line 141) | def test_change_ownership_only_prior_owner(self): method test_change_ownership_then_mint_succeeds (line 145) | def test_change_ownership_then_mint_succeeds(self): function con_pixel_game (line 153) | def con_pixel_game(): class TestPixelGame (line 216) | class TestPixelGame(TestCase): method setUp (line 217) | def setUp(self): method tearDown (line 225) | def tearDown(self): method test_init (line 228) | def test_init(self): FILE: tests/integration/test_rich_ctx_calling.py function con_module1 (line 5) | def con_module1(): function con_all_in_one (line 19) | def con_all_in_one(): function con_dynamic_import (line 41) | def con_dynamic_import(): function con_submission_name_test (line 63) | def con_submission_name_test(): class TestRandomsContract (line 85) | class TestRandomsContract(TestCase): method setUp (line 86) | def setUp(self): method tearDown (line 96) | def tearDown(self): method test_ctx2 (line 99) | def test_ctx2(self): method test_multi_call_doesnt_affect_parameters (line 113) | def test_multi_call_doesnt_affect_parameters(self): method test_submission_name_in_construct_function (line 158) | def test_submission_name_in_construct_function(self): method test_entry_context (line 164) | def test_entry_context(self): FILE: tests/integration/test_run_private_function.py class TestRunPrivateFunction (line 5) | class TestRunPrivateFunction(TestCase): method setUp (line 6) | def setUp(self): method tearDown (line 17) | def tearDown(self): method test_can_call_public_func (line 20) | def test_can_call_public_func(self): method test_cannot_call_private_func (line 23) | def test_cannot_call_private_func(self): method test_cannot_execute_private_func (line 27) | def test_cannot_execute_private_func(self): method test_can_call_private_func_if_run_private_function_called (line 36) | def test_can_call_private_func_if_run_private_function_called(self): method test_can_call_private_func_if_run_private_function_called_and_no_prefix (line 39) | def test_can_call_private_func_if_run_private_function_called_and_no_p... method test_can_call_private_but_then_not (line 42) | def test_can_call_private_but_then_not(self): FILE: tests/integration/test_senecaCompiler_integration.py class TestSenecaCompiler (line 10) | class TestSenecaCompiler(TestCase): method test_visit_assign_variable (line 11) | def test_visit_assign_variable(self): method test_visit_assign_foreign_variable (line 27) | def test_visit_assign_foreign_variable(self): method test_assign_hash_variable (line 43) | def test_assign_hash_variable(self): method test_assign_foreign_hash (line 59) | def test_assign_foreign_hash(self): method test_private_function_prefixes_properly (line 90) | def test_private_function_prefixes_properly(self): method test_private_func_call_in_public_func_properly_renamed (line 102) | def test_private_func_call_in_public_func_properly_renamed(self): method test_private_func_call_in_other_private_functions (line 119) | def test_private_func_call_in_other_private_functions(self): method test_construct_renames_properly (line 142) | def test_construct_renames_properly(self): method test_token_contract_parses_correctly (line 160) | def test_token_contract_parses_correctly(self): method test_export_decorator_argument_is_added (line 171) | def test_export_decorator_argument_is_added(self): FILE: tests/integration/test_seneca_client_randoms.py function con_random_contract (line 5) | def con_random_contract(): class TestRandomsContract (line 64) | class TestRandomsContract(TestCase): method setUp (line 65) | def setUp(self): method tearDown (line 72) | def tearDown(self): method test_basic_shuffle (line 75) | def test_basic_shuffle(self): method test_basic_shuffle_different_with_different_seeds (line 81) | def test_basic_shuffle_different_with_different_seeds(self): method test_random_num_one_vs_two (line 87) | def test_random_num_one_vs_two(self): method test_random_range_int (line 116) | def test_random_range_int(self): method test_random_choice (line 127) | def test_random_choice(self): method test_auxiliary_salt (line 136) | def test_auxiliary_salt(self): FILE: tests/integration/test_seneca_client_replaces_executor.py class TestSenecaClientReplacesExecutor (line 6) | class TestSenecaClientReplacesExecutor(TestCase): method setUp (line 7) | def setUp(self): method tearDown (line 38) | def tearDown(self): method test_initiate_not_enough_approved (line 41) | def test_initiate_not_enough_approved(self): method test_initiate_transfers_coins_correctly (line 50) | def test_initiate_transfers_coins_correctly(self): method test_initiate_writes_to_correct_key_and_properly (line 66) | def test_initiate_writes_to_correct_key_and_properly(self): method test_redeem_on_wrong_secret_fails (line 80) | def test_redeem_on_wrong_secret_fails(self): method test_redeem_on_wrong_sender_fails (line 91) | def test_redeem_on_wrong_sender_fails(self): method test_past_expiration_fails (line 101) | def test_past_expiration_fails(self): method test_successful_redeem_transfers_coins_correctly (line 116) | def test_successful_redeem_transfers_coins_correctly(self): method test_successful_redeem_deletes_entry (line 136) | def test_successful_redeem_deletes_entry(self): method test_refund_works (line 155) | def test_refund_works(self): method test_refund_too_early_fails (line 174) | def test_refund_too_early_fails(self): method test_refund_participant_is_signer_fails (line 188) | def test_refund_participant_is_signer_fails(self): method test_refund_fails_with_wrong_secret (line 203) | def test_refund_fails_with_wrong_secret(self): method test_refund_resets_swaps (line 218) | def test_refund_resets_swaps(self): FILE: tests/integration/test_stamp_deduction.py function submission_kwargs_for_file (line 9) | def submission_kwargs_for_file(f): class TestMetering (line 34) | class TestMetering(TestCase): method setUp (line 35) | def setUp(self): method tearDown (line 55) | def tearDown(self): method test_simple_execution_deducts_stamps (line 58) | def test_simple_execution_deducts_stamps(self): method test_too_few_stamps_fails_and_deducts_properly (line 67) | def test_too_few_stamps_fails_and_deducts_properly(self): method test_adding_too_many_stamps_throws_error (line 81) | def test_adding_too_many_stamps_throws_error(self): method test_adding_all_stamps_with_infinate_loop_eats_all_balance (line 90) | def test_adding_all_stamps_with_infinate_loop_eats_all_balance(self): method test_submitting_contract_succeeds_with_enough_stamps (line 114) | def test_submitting_contract_succeeds_with_enough_stamps(self): method test_pending_writes_has_deducted_stamp_amount_prior_to_auto_commit (line 131) | def test_pending_writes_has_deducted_stamp_amount_prior_to_auto_commit... FILE: tests/performance/prof_transfer.py function submission_kwargs_for_file (line 5) | def submission_kwargs_for_file(f): FILE: tests/performance/test_contracts/erc20_clone.s.py function seed (line 5) | def seed(): function transfer (line 11) | def transfer(amount: int, to: str): function balance_of (line 19) | def balance_of(account: str): function total_supply (line 23) | def total_supply(): function allowance (line 27) | def allowance(owner: str, spender: str): function approve (line 31) | def approve(amount: str, to: str): function transfer_from (line 37) | def transfer_from(amount: int, to: str, main_account: str): FILE: tests/performance/test_contracts/modules/all_in_one.s.py function call_me (line 2) | def call_me(): function call_me_again (line 6) | def call_me_again(): function call_me_again_again (line 10) | def call_me_again_again(): FILE: tests/performance/test_contracts/modules/dynamic_import.s.py function called_from_a_far (line 2) | def called_from_a_far(): function called_from_a_far_stacked (line 7) | def called_from_a_far_stacked(): FILE: tests/performance/test_contracts/modules/module1.s.py function get_context (line 19) | def get_context(): FILE: tests/performance/test_contracts/modules/module2.s.py function get_context (line 5) | def get_context(): FILE: tests/performance/test_contracts/modules/module3.s.py function get_context (line 5) | def get_context(): FILE: tests/performance/test_contracts/modules/module4.s.py function get_context (line 2) | def get_context(): FILE: tests/performance/test_contracts/modules/module5.s.py function get_context (line 4) | def get_context(): FILE: tests/performance/test_contracts/modules/module6.s.py function get_context (line 2) | def get_context(): FILE: tests/performance/test_contracts/modules/module7.s.py function get_context (line 2) | def get_context(): FILE: tests/performance/test_contracts/modules/module8.s.py function get_context (line 2) | def get_context(): FILE: tests/performance/test_contracts/submission.s.py function submit_contract (line 2) | def submit_contract(name: str, code: str, owner: Any=None, constructor_a... function change_developer (line 20) | def change_developer(contract: str, new_developer: str): FILE: tests/performance/test_transfer.py function submission_kwargs_for_file (line 7) | def submission_kwargs_for_file(f): class TestSandbox (line 32) | class TestSandbox(TestCase): method setUp (line 33) | def setUp(self): method tearDown (line 49) | def tearDown(self): method test_transfer_performance (line 52) | def test_transfer_performance(self): FILE: tests/security/contracts/builtin_hack_token.s.py function seed (line 4) | def seed(): function blah (line 9) | def blah(): FILE: tests/security/contracts/call_infinate_loop.s.py function call (line 4) | def call(): FILE: tests/security/contracts/con_inf_writes.s.py function seed (line 4) | def seed(): function dummy (line 11) | def dummy(): FILE: tests/security/contracts/constructor_infinate_loop.s.py function seed (line 2) | def seed(): function dummy (line 8) | def dummy(): FILE: tests/security/contracts/double_spend_gas_attack.s.py function seed (line 4) | def seed(): function double_spend (line 8) | def double_spend(receiver: str): FILE: tests/security/contracts/erc20_clone.s.py function seed (line 5) | def seed(): function transfer (line 11) | def transfer(amount: int, to: str): function balance_of (line 19) | def balance_of(account: str): function total_supply (line 23) | def total_supply(): function allowance (line 27) | def allowance(owner: str, spender: str): function approve (line 31) | def approve(amount: str, to: str): function transfer_from (line 37) | def transfer_from(amount: int, to: str, main_account: str): FILE: tests/security/contracts/get_set_driver.py function seed (line 5) | def seed(): function dummy (line 12) | def dummy(): FILE: tests/security/contracts/get_set_driver_2.py function seed (line 6) | def seed(): function dummy (line 13) | def dummy(): FILE: tests/security/contracts/hack_tokens.s.py function seed (line 4) | def seed(): function blah (line 9) | def blah(): FILE: tests/security/contracts/import_hash_from_contract.s.py function seed (line 4) | def seed(): function dummy (line 8) | def dummy(): FILE: tests/security/contracts/infinate_loop.s.py function loop (line 2) | def loop(): function eat_stamps (line 8) | def eat_stamps(): FILE: tests/security/contracts/submission.s.py function submit_contract (line 2) | def submit_contract(name: str, code: str, owner: Any=None, constructor_a... function change_developer (line 20) | def change_developer(contract: str, new_developer: str): FILE: tests/security/test_erc20_token_hacks.py class TestTokenHacks (line 4) | class TestTokenHacks(TestCase): method setUp (line 5) | def setUp(self): method tearDown (line 29) | def tearDown(self): method test_orm_rename_hack (line 32) | def test_orm_rename_hack(self): method test_orm_setattr_hack (line 48) | def test_orm_setattr_hack(self): method test_double_spend_if_stamps_run_out (line 65) | def test_double_spend_if_stamps_run_out(self): method test_stamp_fails_when_calling_infinate_loop_from_another_contract (line 101) | def test_stamp_fails_when_calling_infinate_loop_from_another_contract(... method test_constructor_with_infinate_loop_fails (line 115) | def test_constructor_with_infinate_loop_fails(self): method test_infinate_loop_of_writes_undos_everything (line 121) | def test_infinate_loop_of_writes_undos_everything(self): method test_accessing_variable_on_another_contract (line 127) | def test_accessing_variable_on_another_contract(self): method test_get_set_driver (line 143) | def test_get_set_driver(self): method test_get_set_driver_2 (line 166) | def test_get_set_driver_2(self): FILE: tests/unit/contracts/currency.s.py function seed (line 4) | def seed(): function transfer (line 9) | def transfer(amount: int, to: str): function balance (line 21) | def balance(account: str): FILE: tests/unit/contracts/exception.s.py function seed (line 4) | def seed(): function transfer (line 9) | def transfer(amount: int, to: str): function balance_of (line 19) | def balance_of(account: str): FILE: tests/unit/contracts/proxythis.py function proxythis (line 2) | def proxythis(con: str): function nestedproxythis (line 6) | def nestedproxythis(con: str): function noproxy (line 10) | def noproxy(): FILE: tests/unit/contracts/submission.s.py function submit_contract (line 2) | def submit_contract(name: str, code: str, owner: Any=None, constructor_a... function change_developer (line 20) | def change_developer(contract: str, new_developer: str): FILE: tests/unit/contracts/thistest2.py function exported (line 2) | def exported(): function getthis (line 6) | def getthis(): function nested_exported (line 10) | def nested_exported(): FILE: tests/unit/precompiled/compiled_token.py class ctx (line 4) | class ctx: function ____ (line 11) | def ____(): function transfer (line 16) | def transfer(amount, to): function balance_of (line 22) | def balance_of(account): function total_supply (line 25) | def total_supply(): function allowance (line 28) | def allowance(owner, spender): function approve (line 31) | def approve(amount, to): function transfer_from (line 36) | def transfer_from(amount, to, main_account): function __private_func (line 46) | def __private_func(): FILE: tests/unit/precompiled/updated_submission.py function submit_contract (line 2) | def submit_contract(name: str, code: str, owner: Any=None, constructor_a... function change_developer (line 20) | def change_developer(contract: str, new_developer: str): FILE: tests/unit/test_client.py class TestClient (line 7) | class TestClient(TestCase): method setUp (line 8) | def setUp(self): method tearDown (line 19) | def tearDown(self): method test_set_submission_updates_contract_file (line 23) | def test_set_submission_updates_contract_file(self): method test_can_create_instance_without_submission_contract (line 39) | def test_can_create_instance_without_submission_contract(self): method test_gets_submission_contract_from_state_if_no_filename_provided (line 45) | def test_gets_submission_contract_from_state_if_no_filename_provided(s... method test_set_submission_contract__sets_from_submission_filename_property (line 53) | def test_set_submission_contract__sets_from_submission_filename_proper... method test_set_submission_contract__sets_from_submission_from_state (line 69) | def test_set_submission_contract__sets_from_submission_from_state(self): method test_set_submission_contract__no_contract_provided_or_found_raises_AssertionError (line 88) | def test_set_submission_contract__no_contract_provided_or_found_raises... method test_submit__raises_AssertionError_if_no_submission_contract_set (line 97) | def test_submit__raises_AssertionError_if_no_submission_contract_set(s... FILE: tests/unit/test_client_keys_prefix.py class TestClientKeysPrefix (line 5) | class TestClientKeysPrefix(unittest.TestCase): method setUp (line 7) | def setUp(self): method tearDown (line 29) | def tearDown(self): method test_keys_scoped_to_exact_contract (line 32) | def test_keys_scoped_to_exact_contract(self): FILE: tests/unit/test_context_data_struct.py class TestContext (line 5) | class TestContext(TestCase): method test_get_state (line 6) | def test_get_state(self): method test_get_state_after_added_state (line 16) | def test_get_state_after_added_state(self): method test_pop_state_doesnt_fail_if_none_added (line 35) | def test_pop_state_doesnt_fail_if_none_added(self): method test_pop_state_removes_last_state (line 47) | def test_pop_state_removes_last_state(self): method test_add_state_doesnt_work_if_this_is_same (line 70) | def test_add_state_doesnt_work_if_this_is_same(self): method test_properties_read (line 89) | def test_properties_read(self): method test_properties_cant_be_written (line 102) | def test_properties_cant_be_written(self): FILE: tests/unit/test_datetime.py class TestDatetime (line 7) | class TestDatetime(TestCase): method test_datetime_variables_set (line 8) | def test_datetime_variables_set(self): method test_datetime_eq_true (line 24) | def test_datetime_eq_true(self): method test_datetime_eq_false (line 32) | def test_datetime_eq_false(self): method test_datetime_ne_false (line 44) | def test_datetime_ne_false(self): method test_datetime_ne_true (line 52) | def test_datetime_ne_true(self): method test_datetime_lt_true (line 64) | def test_datetime_lt_true(self): method test_datetime_lt_false (line 73) | def test_datetime_lt_false(self): method test_datetime_gt_true (line 85) | def test_datetime_gt_true(self): method test_datetime_gt_false (line 94) | def test_datetime_gt_false(self): method test_datetime_ge_true_g (line 106) | def test_datetime_ge_true_g(self): method test_datetime_ge_true_eq (line 115) | def test_datetime_ge_true_eq(self): method test_datetime_ge_false_g (line 123) | def test_datetime_ge_false_g(self): method test_datetime_le_true (line 135) | def test_datetime_le_true(self): method test_datetime_le_true_eq (line 144) | def test_datetime_le_true_eq(self): method test_datetime_le_false (line 152) | def test_datetime_le_false(self): method test_datetime_subtraction_to_proper_timedelta (line 161) | def test_datetime_subtraction_to_proper_timedelta(self): method test_datetime_strptime (line 168) | def test_datetime_strptime(self): method test_datetime_strptime_invalid_format (line 173) | def test_datetime_strptime_invalid_format(self): method test_datetime_strptime_invalid_date (line 178) | def test_datetime_strptime_invalid_date(self): method test_datetime_strptime_invalid_date_format (line 183) | def test_datetime_strptime_invalid_date_format(self): method test_datetime_returns_correct_datetime_cls (line 188) | def test_datetime_returns_correct_datetime_cls(self): FILE: tests/unit/test_decimal.py class TestDecimal (line 10) | class TestDecimal(TestCase): method test_init (line 11) | def test_init(self): method test_init_float (line 14) | def test_init_float(self): method test_init_int (line 17) | def test_init_int(self): method test_bool_true (line 20) | def test_bool_true(self): method test_bool_false (line 23) | def test_bool_false(self): method test_eq_whole_numbers (line 26) | def test_eq_whole_numbers(self): method test_eq_floats (line 29) | def test_eq_floats(self): method test_lt (line 32) | def test_lt(self): method test_lte (line 36) | def test_lte(self): method test_gt (line 41) | def test_gt(self): method test_gte (line 45) | def test_gte(self): method test_str (line 50) | def test_str(self): method test_neg (line 54) | def test_neg(self): method test_pos (line 57) | def test_pos(self): method test_other_equality (line 60) | def test_other_equality(self): method test_abs (line 64) | def test_abs(self): method test_add (line 68) | def test_add(self): method test_arbitrarily_large_number (line 74) | def test_arbitrarily_large_number(self): method test_zero_equality (line 81) | def test_zero_equality(self): method test_sub (line 84) | def test_sub(self): method test_add_negs (line 90) | def test_add_negs(self): method test_radd (line 93) | def test_radd(self): method test_rsub (line 99) | def test_rsub(self): method test_mul (line 105) | def test_mul(self): method test_rmul (line 111) | def test_rmul(self): method test_div (line 117) | def test_div(self): method test_div_large_decimals (line 121) | def test_div_large_decimals(self): method test_fix_precision_cuts_too_low (line 129) | def test_fix_precision_cuts_too_low(self): method test_fix_precision_cuts_too_high (line 135) | def test_fix_precision_cuts_too_high(self): method test_fix_precision_doesnt_cut_high (line 139) | def test_fix_precision_doesnt_cut_high(self): method test_fix_precision_cuts_all_decimals_if_too_high (line 143) | def test_fix_precision_cuts_all_decimals_if_too_high(self): method test_fix_precision_cuts_decimals_if_high_but_not_too_high (line 147) | def test_fix_precision_cuts_decimals_if_high_but_not_too_high(self): method test_contracting_decimal_can_round (line 153) | def test_contracting_decimal_can_round(self): method test_sci_not_whole_number (line 157) | def test_sci_not_whole_number(self): method test_sci_not_decimal (line 163) | def test_sci_not_decimal(self): method test_sci_not_e0 (line 169) | def test_sci_not_e0(self): method test_sci_not_extra_precision (line 175) | def test_sci_not_extra_precision(self): FILE: tests/unit/test_driver_tombstones.py class TestDriverTombstones (line 5) | class TestDriverTombstones(unittest.TestCase): method setUp (line 7) | def setUp(self): method tearDown (line 11) | def tearDown(self): method test_items_excludes_pending_deletes (line 14) | def test_items_excludes_pending_deletes(self): FILE: tests/unit/test_encode.py class TestEncode (line 8) | class TestEncode(TestCase): method test_int_to_bytes (line 9) | def test_int_to_bytes(self): method test_str_to_bytes (line 15) | def test_str_to_bytes(self): method test_dec_to_bytes (line 21) | def test_dec_to_bytes(self): method test_decode_bytes_to_int (line 27) | def test_decode_bytes_to_int(self): method test_decode_bytes_to_str (line 33) | def test_decode_bytes_to_str(self): method test_decode_bytes_to_dec (line 39) | def test_decode_bytes_to_dec(self): method test_decode_failure (line 46) | def test_decode_failure(self): method test_date_encode (line 51) | def test_date_encode(self): method test_date_decode (line 58) | def test_date_decode(self): method test_timedelta_encode (line 65) | def test_timedelta_encode(self): method test_timedelta_decode (line 72) | def test_timedelta_decode(self): method test_int_encode (line 79) | def test_int_encode(self): method test_int_decode (line 84) | def test_int_decode(self): method test_bigint_encode (line 89) | def test_bigint_encode(self): method test_bigint_decode (line 96) | def test_bigint_decode(self): method test_encode_ints_nested_list (line 101) | def test_encode_ints_nested_list(self): method test_encode_dict_with_list_containing_different_types (line 107) | def test_encode_dict_with_list_containing_different_types(self): method test_encode_ints_nested_dict (line 113) | def test_encode_ints_nested_dict(self): method test_safe_repr_non_object (line 119) | def test_safe_repr_non_object(self): method test_safe_repr_arbitrary_object (line 125) | def test_safe_repr_arbitrary_object(self): method test_safe_repr_decimal_object (line 134) | def test_safe_repr_decimal_object(self): method test_safe_repr_decimal_object_different_not_equal (line 140) | def test_safe_repr_decimal_object_different_not_equal(self): method test_safe_repr_assertion_error_string (line 146) | def test_safe_repr_assertion_error_string(self): method test_contracting_decimal (line 152) | def test_contracting_decimal(self): method test_decode_fixed_trailing_doesnt_get_rid_of_zeros_properly (line 158) | def test_decode_fixed_trailing_doesnt_get_rid_of_zeros_properly(self): method test_encoding_fixed_trailing_zeros (line 163) | def test_encoding_fixed_trailing_zeros(self): method test_convert_returns_normal_dict (line 170) | def test_convert_returns_normal_dict(self): method test_convert_bigint (line 179) | def test_convert_bigint(self): method test_convert_contracting_decimal (line 185) | def test_convert_contracting_decimal(self): method test_convert_contracting_datetime (line 198) | def test_convert_contracting_datetime(self): method test_convert_contracting_timedelta (line 219) | def test_convert_contracting_timedelta(self): method test_convert_contracting_bytes (line 232) | def test_convert_contracting_bytes(self): method test_multiple_conversions (line 245) | def test_multiple_conversions(self): method test_nested_dictionaries (line 278) | def test_nested_dictionaries(self): method test_lists (line 309) | def test_lists(self): FILE: tests/unit/test_imports_stdlib.py class TestImports (line 7) | class TestImports(TestCase): method setUp (line 8) | def setUp(self): method test_func_correct_type (line 26) | def test_func_correct_type(self): method test_func_incorrect_name (line 34) | def test_func_incorrect_name(self): method test_func_incorrect_args (line 42) | def test_func_incorrect_args(self): method test_func_correct_with_kwargs (line 50) | def test_func_correct_with_kwargs(self): method test_func_correct_with_annotations (line 58) | def test_func_correct_with_annotations(self): method test_func_correct_with_kwargs_and_annotations (line 66) | def test_func_correct_with_kwargs_and_annotations(self): method test_func_correct_private (line 74) | def test_func_correct_private(self): method test_func_false_private (line 82) | def test_func_false_private(self): method test_var_fails_if_type_not_of_datum (line 90) | def test_var_fails_if_type_not_of_datum(self): method test_enforce_interface_works_all_public_funcs (line 94) | def test_enforce_interface_works_all_public_funcs(self): method test_enforce_interface_works_on_subset_funcs (line 106) | def test_enforce_interface_works_on_subset_funcs(self): method test_enforce_interface_fails_on_wrong_funcs (line 117) | def test_enforce_interface_fails_on_wrong_funcs(self): method test_enforce_interface_on_resources (line 128) | def test_enforce_interface_on_resources(self): method test_complete_enforcement (line 136) | def test_complete_enforcement(self): method test_private_function_enforcement (line 150) | def test_private_function_enforcement(self): method test_complete_enforcement_with_private_func (line 157) | def test_complete_enforcement_with_private_func(self): FILE: tests/unit/test_linter.py class TestLinter (line 7) | class TestLinter(TestCase): method setUp (line 8) | def setUp(self): method test_linter (line 11) | def test_linter(self): method test_good_ast_type (line 32) | def test_good_ast_type(self): method test_bad_ast_type (line 47) | def test_bad_ast_type(self): method test_not_system_variable (line 54) | def test_not_system_variable(self): method test_system_variable (line 60) | def test_system_variable(self): method test_not_system_variable_ast (line 70) | def test_not_system_variable_ast(self): method test_not_system_variable_ast_success (line 83) | def test_not_system_variable_ast_success(self): method test_visit_async_func_def_fail_code (line 103) | def test_visit_async_func_def_fail_code(self): method test_visit_class_fail_code (line 128) | def test_visit_class_fail_code(self): method test_visit_try_except_fail_code (line 141) | def test_visit_try_except_fail_code(self): method test_accessing_system_vars (line 156) | def test_accessing_system_vars(self): method test_accessing_attribute (line 169) | def test_accessing_attribute(self): method test_no_nested_imports (line 185) | def test_no_nested_imports(self): method test_no_nested_imports_works (line 197) | def test_no_nested_imports_works(self): method test_augassign (line 211) | def test_augassign(self): method test_no_import_from (line 224) | def test_no_import_from(self): method test_final_checks_set_properly (line 256) | def test_final_checks_set_properly(self): method test_collect_function_defs (line 269) | def test_collect_function_defs(self): method test_assignment_of_import (line 292) | def test_assignment_of_import(self): method test_good_orm_initialization (line 306) | def test_good_orm_initialization(self): method test_bad_orm_initialization (line 318) | def test_bad_orm_initialization(self): method test_multi_targets_orm_fails (line 330) | def test_multi_targets_orm_fails(self): method test_multi_decorator_fails (line 344) | def test_multi_decorator_fails(self): method test_invalid_decorator_fails (line 356) | def test_invalid_decorator_fails(self): method test_multiple_constructors_fails (line 367) | def test_multiple_constructors_fails(self): method test_function_str_annotation (line 388) | def test_function_str_annotation(self): method test_function_dict_annotation (line 399) | def test_function_dict_annotation(self): method test_function_bad_annotation (line 410) | def test_function_bad_annotation(self): method test_function_none_annotation (line 422) | def test_function_none_annotation(self): method test_none_return_annotation (line 434) | def test_none_return_annotation(self): method test_contract_annotation (line 446) | def test_contract_annotation(self): method test_violations_sorted_by_line_number (line 477) | def test_violations_sorted_by_line_number(self): FILE: tests/unit/test_module.py class TestDatabase (line 8) | class TestDatabase(TestCase): method setUp (line 9) | def setUp(self): method tearDown (line 13) | def tearDown(self): method test_push_and_get_contract (line 16) | def test_push_and_get_contract(self): method test_flush (line 25) | def test_flush(self): class TestDatabaseLoader (line 36) | class TestDatabaseLoader(TestCase): method setUp (line 37) | def setUp(self): method test_init (line 40) | def test_init(self): method test_create_module (line 43) | def test_create_module(self): method test_exec_module (line 46) | def test_exec_module(self): method test_exec_module_nonattribute (line 55) | def test_exec_module_nonattribute(self): method test_module_representation (line 65) | def test_module_representation(self): class TestInstallLoader (line 71) | class TestInstallLoader(TestCase): method test_install_loader (line 72) | def test_install_loader(self): method test_integration_and_importing (line 85) | def test_integration_and_importing(self): class TestModuleLoadingIntegration (line 102) | class TestModuleLoadingIntegration(TestCase): method setUp (line 103) | def setUp(self): method tearDown (line 119) | def tearDown(self): method test_get_code_string (line 123) | def test_get_code_string(self): FILE: tests/unit/test_new_driver.py class TestDriver (line 7) | class TestDriver(unittest.TestCase): method setUp (line 9) | def setUp(self): method tearDown (line 14) | def tearDown(self): method test_set_and_get (line 18) | def test_set_and_get(self): method test_find (line 26) | def test_find(self): method test_keys_from_disk (line 34) | def test_keys_from_disk(self): method test_iter_from_disk (line 45) | def test_iter_from_disk(self): method test_items (line 59) | def test_items(self): method test_delete_key_from_disk (line 68) | def test_delete_key_from_disk(self): method test_flush_cache (line 77) | def test_flush_cache(self): method test_flush_disk (line 84) | def test_flush_disk(self): method test_commit (line 92) | def test_commit(self): method test_get_all_contract_state (line 100) | def test_get_all_contract_state(self): method test_transaction_writes (line 109) | def test_transaction_writes(self): method test_clear_transaction_writes (line 118) | def test_clear_transaction_writes(self): method test_get_run_state (line 127) | def test_get_run_state(self): FILE: tests/unit/test_orm.py class TestDatum (line 17) | class TestDatum(TestCase): method setUp (line 18) | def setUp(self): method tearDown (line 21) | def tearDown(self): method test_init (line 24) | def test_init(self): class TestVariable (line 29) | class TestVariable(TestCase): method setUp (line 30) | def setUp(self): method tearDown (line 33) | def tearDown(self): method test_set (line 37) | def test_set(self): method test_get (line 49) | def test_get(self): method test_set_get (line 62) | def test_set_get(self): method test_default_value (line 73) | def test_default_value(self): method test_mutable_default_is_copied (line 86) | def test_mutable_default_is_copied(self): class TestHash (line 96) | class TestHash(TestCase): method setUp (line 97) | def setUp(self): method tearDown (line 100) | def tearDown(self): method test_set (line 103) | def test_set(self): method test_get (line 119) | def test_get(self): method test_set_get (line 133) | def test_set_get(self): method test_setitem (line 149) | def test_setitem(self): method test_getitem (line 164) | def test_getitem(self): method test_setitems (line 179) | def test_setitems(self): method test_setitem_delimiter_illegal (line 191) | def test_setitem_delimiter_illegal(self): method test_setitems_too_many_dimensions_fails (line 199) | def test_setitems_too_many_dimensions_fails(self): method test_setitems_key_too_large (line 208) | def test_setitems_key_too_large(self): method test_setitem_value_too_large (line 219) | def test_setitem_value_too_large(self): method test_setitems_keys_too_large (line 222) | def test_setitems_keys_too_large(self): method test_getitems_keys (line 235) | def test_getitems_keys(self): method test_getsetitems (line 252) | def test_getsetitems(self): method test_getitems_keys_too_large (line 265) | def test_getitems_keys_too_large(self): method test_getitems_too_many_dimensions_fails (line 278) | def test_getitems_too_many_dimensions_fails(self): method test_getitems_key_too_large (line 287) | def test_getitems_key_too_large(self): method test_getitem_returns_default_value_if_none (line 298) | def test_getitem_returns_default_value_if_none(self): method test_get_all_when_none_exist (line 306) | def test_get_all_when_none_exist(self): method test_get_all_after_setting (line 314) | def test_get_all_after_setting(self): method test_items_returns_kv_pairs (line 332) | def test_items_returns_kv_pairs(self): method test_items_multi_hash_returns_kv_pairs (line 354) | def test_items_multi_hash_returns_kv_pairs(self): method test_items_multi_hash_returns_all (line 380) | def test_items_multi_hash_returns_all(self): method test_items_clear_deletes_only_multi_hash (line 409) | def test_items_clear_deletes_only_multi_hash(self): method test_all_multihash_returns_values (line 439) | def test_all_multihash_returns_values(self): method test_multihash_multiple_dims_clear_behaves_similar_to_single_dim (line 462) | def test_multihash_multiple_dims_clear_behaves_similar_to_single_dim(s... method test_multihash_multiple_dims_all_gets_items_similar_to_single_dim (line 492) | def test_multihash_multiple_dims_all_gets_items_similar_to_single_dim(... method test_clear_items_deletes_all_key_value_pairs (line 513) | def test_clear_items_deletes_all_key_value_pairs(self): class TestForeignVariable (line 544) | class TestForeignVariable(TestCase): method setUp (line 545) | def setUp(self): method tearDown (line 548) | def tearDown(self): method test_set (line 551) | def test_set(self): method test_get (line 563) | def test_get(self): class TestForeignHash (line 580) | class TestForeignHash(TestCase): method setUp (line 581) | def setUp(self): method tearDown (line 584) | def tearDown(self): method test_set (line 588) | def test_set(self): method test_get (line 601) | def test_get(self): method test_setitem (line 616) | def test_setitem(self): method test_getitem (line 629) | def test_getitem(self): class TestLogEvent (line 648) | class TestLogEvent(TestCase): method setUp (line 650) | def setUp(self): method test_log_event (line 665) | def test_log_event(self): method test_log_event_with_max_indexed_args (line 687) | def test_log_event_with_max_indexed_args(self): method test_log_event_with_too_many_indexed_args (line 710) | def test_log_event_with_too_many_indexed_args(self): method test_write_event_success (line 737) | def test_write_event_success(self): method test_write_event_missing_argument (line 750) | def test_write_event_missing_argument(self): method test_write_event_wrong_type (line 762) | def test_write_event_wrong_type(self): method test_write_event_with_empty_data (line 776) | def test_write_event_with_empty_data(self): method test_write_event_with_none (line 785) | def test_write_event_with_none(self): method test_write_event_with_invalid_argument_names (line 794) | def test_write_event_with_invalid_argument_names(self): class TestLogEventBoundaryIndexedArgs (line 818) | class TestLogEventBoundaryIndexedArgs(TestCase): method setUp (line 819) | def setUp(self): method test_log_event_with_exactly_three_indexed_args (line 825) | def test_log_event_with_exactly_three_indexed_args(self): method test_log_event_with_more_than_three_indexed_args (line 837) | def test_log_event_with_more_than_three_indexed_args(self): class TestLogEventTypeEnforcementFuzz (line 855) | class TestLogEventTypeEnforcementFuzz(TestCase): method setUp (line 856) | def setUp(self): method random_string (line 867) | def random_string(self, length=10): method test_write_event_with_random_data (line 870) | def test_write_event_with_random_data(self): method test_write_event_with_random_structures (line 884) | def test_write_event_with_random_structures(self): method test_write_event_with_random_numeric_types (line 900) | def test_write_event_with_random_numeric_types(self): class TestLogEventInvalidArgumentNames (line 921) | class TestLogEventInvalidArgumentNames(TestCase): method setUp (line 922) | def setUp(self): method test_write_event_with_invalid_argument_names (line 933) | def test_write_event_with_invalid_argument_names(self): class TestLogEventLargeData (line 947) | class TestLogEventLargeData(TestCase): method setUp (line 948) | def setUp(self): method test_write_event_with_large_data (line 959) | def test_write_event_with_large_data(self): class TestLogEventInvalidDataTypes (line 984) | class TestLogEventInvalidDataTypes(TestCase): method setUp (line 985) | def setUp(self): method test_write_event_with_invalid_string_type (line 996) | def test_write_event_with_invalid_string_type(self): method test_write_event_with_invalid_numeric_type (line 1010) | def test_write_event_with_invalid_numeric_type(self): method test_write_event_with_unexpected_object_type (line 1024) | def test_write_event_with_unexpected_object_type(self): class TestLogEventNonStandardTypes (line 1038) | class TestLogEventNonStandardTypes(TestCase): method setUp (line 1039) | def setUp(self): method test_log_event_with_non_standard_type (line 1045) | def test_log_event_with_non_standard_type(self): method test_log_event_with_custom_object_type (line 1059) | def test_log_event_with_custom_object_type(self): FILE: tests/unit/test_parser.py class TestParser (line 6) | class TestParser(TestCase): method setUp (line 7) | def setUp(self): method test_methods_for_contract_single_function (line 10) | def test_methods_for_contract_single_function(self): method test_methods_for_contract_datetime (line 37) | def test_methods_for_contract_datetime(self): method test_methods_for_contract_multiple_functions_and_privates (line 64) | def test_methods_for_contract_multiple_functions_and_privates(self): method test_variables_for_contract_passes_election_house (line 112) | def test_variables_for_contract_passes_election_house(self): method test_variables_for_contract_multiple_variables (line 170) | def test_variables_for_contract_multiple_variables(self): method test_variables_for_contract_multiple_hashes (line 192) | def test_variables_for_contract_multiple_hashes(self): method test_variables_mix (line 214) | def test_variables_mix(self): FILE: tests/unit/test_revert_on_exception.py function submission_kwargs_for_file (line 20) | def submission_kwargs_for_file(f): class MyTestCase (line 43) | class MyTestCase(unittest.TestCase): method setUp (line 45) | def setUp(self): method test_exception (line 79) | def test_exception(self): method test_non_exception (line 97) | def test_non_exception(self): FILE: tests/unit/test_runtime.py class TestRuntime (line 8) | class TestRuntime(TestCase): method tearDown (line 9) | def tearDown(self): method test_tracer_works_roughly (line 13) | def test_tracer_works_roughly(self): method test_tracer_bypass_records_no_stamps (line 25) | def test_tracer_bypass_records_no_stamps(self): method test_arbitrary_modification_of_stamps_works (line 35) | def test_arbitrary_modification_of_stamps_works(self): method test_starting_and_stopping_tracer_works_roughly (line 50) | def test_starting_and_stopping_tracer_works_roughly(self): method test_modifying_stamps_during_tracing (line 73) | def test_modifying_stamps_during_tracing(self): method test_add_exists (line 100) | def test_add_exists(self): method test_deduct_write_adjusts_total_writes (line 113) | def test_deduct_write_adjusts_total_writes(self): method test_deduct_write_fails_if_too_many_writes (line 126) | def test_deduct_write_fails_if_too_many_writes(self): FILE: tests/unit/test_state_management.py class MyTestCase (line 8) | class MyTestCase(unittest.TestCase): method setUp (line 10) | def setUp(self): method deploy_broken_stuff (line 26) | def deploy_broken_stuff(self): method test_submit (line 53) | def test_submit(self): FILE: tests/unit/test_stdlib_hashing.py class TestHashing (line 5) | class TestHashing(TestCase): method test_sha3 (line 6) | def test_sha3(self): method test_sha256 (line 12) | def test_sha256(self): FILE: tests/unit/test_sys_contracts/bad_lint.s.py function no_exports (line 1) | def no_exports(): FILE: tests/unit/test_sys_contracts/compile_this.s.py function good_function (line 2) | def good_function(): function another_function (line 5) | def another_function(): FILE: tests/unit/test_sys_contracts/currency.s.py function seed (line 7) | def seed(): function assert_stamps (line 25) | def assert_stamps(stamps): function submit_stamps (line 30) | def submit_stamps(stamps): function transfer (line 37) | def transfer(to, amount): function approve (line 45) | def approve(spender, amount): function transfer_from (line 49) | def transfer_from(approver, spender, amount): FILE: tests/unit/test_sys_contracts/good_lint.s.py function exports (line 2) | def exports(): FILE: tests/unit/test_sys_contracts/module_func.py function seed (line 5) | def seed(): function test_func (line 10) | def test_func(status=None): function test_keymod (line 14) | def test_keymod(deduct): FILE: tests/unit/test_timedelta.py class TestTimedelta (line 7) | class TestTimedelta(TestCase): method test_implementation_mimics_actual_timedelta (line 8) | def test_implementation_mimics_actual_timedelta(self): method test_constants_work (line 14) | def test_constants_work(self): method test_eq_true (line 21) | def test_eq_true(self): method test_eq_false (line 27) | def test_eq_false(self): method test_gt_true (line 33) | def test_gt_true(self): method test_gt_false (line 39) | def test_gt_false(self): method test_ge_true (line 45) | def test_ge_true(self): method test_ge_false (line 51) | def test_ge_false(self): method test_ge_true_eq (line 57) | def test_ge_true_eq(self): method test_lt_true (line 63) | def test_lt_true(self): method test_lt_false (line 69) | def test_lt_false(self): method test_le_true (line 75) | def test_le_true(self): method test_le_false (line 81) | def test_le_false(self): method test_le_true_eq (line 87) | def test_le_true_eq(self): method test_ne_true (line 93) | def test_ne_true(self): method test_ne_false (line 99) | def test_ne_false(self): method test_addition_works_days (line 105) | def test_addition_works_days(self): method test_addition_works_seconds (line 113) | def test_addition_works_seconds(self): method test_addition_works_days_and_seconds (line 121) | def test_addition_works_days_and_seconds(self): method test_subtraction_works_days (line 129) | def test_subtraction_works_days(self): method test_subtraction_works_seconds (line 137) | def test_subtraction_works_seconds(self): method test_subtraction_works_days_and_seconds (line 145) | def test_subtraction_works_days_and_seconds(self): method test_multiplication_works (line 153) | def test_multiplication_works(self): method test_multiplication_works_seconds (line 161) | def test_multiplication_works_seconds(self): method test_multiplication_works_days_and_seconds (line 169) | def test_multiplication_works_days_and_seconds(self): method test_addition_not_implemented (line 179) | def test_addition_not_implemented(self): method test_subtraction_not_implemented (line 183) | def test_subtraction_not_implemented(self): method test_multiplication_with_int_works (line 187) | def test_multiplication_with_int_works(self): method test_multiplication_does_not_work_with_decimal (line 191) | def test_multiplication_does_not_work_with_decimal(self): method test_get_seconds_works (line 195) | def test_get_seconds_works(self): method test_get_minutes_works (line 206) | def test_get_minutes_works(self): method test_get_hours_works (line 217) | def test_get_hours_works(self): method test_get_days_works (line 228) | def test_get_days_works(self): method test_get_weeks_works (line 239) | def test_get_weeks_works(self): method test_larger_components_returns_as_expected (line 250) | def test_larger_components_returns_as_expected(self): method test_adding_timedelta_to_datetime_returns_correct (line 262) | def test_adding_timedelta_to_datetime_returns_correct(self): method test_subtracting_timedelta_to_datetime_returns_correct (line 269) | def test_subtracting_timedelta_to_datetime_returns_correct(self):