コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
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
コード例 #4
0
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
コード例 #5
0
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
コード例 #6
0
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