Exemplo n.º 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
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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
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