Problem
Some tests are extensions of test_object, either by testing the "value" of an object, or by testing something code (i.e. AST) related.
value tests check isDefinedInProcess:
test_dictionary
test_data_frame
test_mc???
test_object_after_expression
code tests are similar in that they involve grabbing something by "name" in the AST:
test_object_accessed (mentioned in the specs)
Solution
Collapse the "isDefinedInProcess" checks into single place, with chained methods for further checks, like check_object('d').is_dictionary(with_keys = ['a', 'b']), or something.
Misc
Problem
Some tests are extensions of
test_object, either by testing the "value" of an object, or by testing something code (i.e. AST) related.value tests check isDefinedInProcess:
test_dictionarytest_data_frametest_mc???test_object_after_expressioncode tests are similar in that they involve grabbing something by "name" in the AST:
test_object_accessed(mentioned in the specs)Solution
Collapse the "isDefinedInProcess" checks into single place, with chained methods for further checks, like
check_object('d').is_dictionary(with_keys = ['a', 'b']), or something.Misc
isDefinedProcessis redundant, as included w/inDefinedProcessTest