codetools
.contexts
.tests
.context_with_unit_conversion_adapter_test_case
.ContextWithUnitConversionAdapterLogTestCase
codetools
contexts
tests
context_with_unit_conversion_adapter_test_case
ContextWithUnitConversionAdapterLogTestCase
class documentation
class ContextWithUnitConversionAdapterLogTestCase(DataContextTestCase): (source)
Test whether context still works with an adapter attached. This doesn't test any conversion behavior.
Method | context |
Return the type of context we are testing. |
Method | key |
Return name of variables |
Method | matched |
Return values for testing dictionary get/set, etc. |
Method | unmatched |
Return values for testing dictionary get/set, etc. |
Method | _simple |
A Context should work as an evaluation context Python's eval() |
Inherited from AbstractContextTestCase
(via DataContextTestCase
):
Method | fail |
Fail if the two objects are unequal as determined by the '==' operator. |
Method | run |
Undocumented |
Method | test |
Can we delete an item from the dictionary? |
Method | test |
Does deleting a non-existent item raise a NameError excetion? |
Method | test |
If a name is missing in the eval statement, is NameError raised? |
Method | test |
Can you read and write values reliably? |
Method | test |
Does has_key respond correctly when it doesn't have a key? |
Method | test |
Does has_key respond correctly when it has a key? |
Method | test |
Can you take a len of a context? |
Method | test |
Does has_key respond correctly when it doesn't have a key? |
Method | test |
Does rebinding a variable work? |
Method | test |
Does the context work as an evaluation context Python's eval()? |
Method | type2test |
Return a context to be tested by BasicTestMappingProtocol. |
Method | _del |
Can we delete an item from the dictionary? |
Method | _del |
Does deleting a non-existent item raise a KeyError excetion? |
Method | _eval |
If a name is missing in the eval statement, is NameError raised? |
Method | _get |
Can you read and write values reliably? |
Inherited from BasicTestMappingProtocol
(via DataContextTestCase
, AbstractContextTestCase
):
Method | __init__ |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Instance Variable | inmapping |
Undocumented |
Instance Variable | other |
Undocumented |
Instance Variable | reference |
Undocumented |
Method | _empty |
Return an empty mapping object |
Method | _full |
Return a mapping object with the value contained in data dictionary |
Method | _reference |
Return a dictionary of values which are invariant by storage in the object under test. |
overrides
codetools.contexts.tests.data_context_test_case.DataContextTestCase.matched_input_output_pair
Return values for testing dictionary get/set, etc.
overrides
codetools.contexts.tests.abstract_context_test_case.AbstractContextTestCase.unmatched_pair
Return values for testing dictionary get/set, etc.
overrides
codetools.contexts.tests.abstract_context_test_case.AbstractContextTestCase._simple_eval_works
A Context should work as an evaluation context Python's eval() Note: depending how your adapters work, this will likely need to be over-ridden.