def test_serialize_deconstructable(value, fn_kwargs, expected_imports, expected_value): actual_imports, actual_value = serialize_deconstructable( value, **fn_kwargs) assert actual_imports == expected_imports assert actual_value == expected_value
def test_serialization_of_deferred_values(value, expected_imports, expected_value): actual_imports, actual_value = serialize_deconstructable(value) assert actual_imports == expected_imports assert actual_value == expected_value
def test_serialize_deconstructable(value, fn_kwargs, expected_imports, expected_value): actual_imports, actual_value = serialize_deconstructable(value, **fn_kwargs) assert actual_imports == expected_imports assert actual_value == expected_value
def test_serialization_of_operation_instances(value, expected_imports, expected_value): actual_imports, actual_value = serialize_deconstructable(value) assert actual_value == expected_value assert actual_imports == expected_imports