Ejemplo n.º 1
0
def test_primitive_ignores_none():
    assert Bool.to_primitive(None, True) is None
    assert Choice.to_primitive(None, True) is None
    assert DateTime.to_primitive(None, True) is None
    assert Decimal.to_primitive(None, True) is None
    assert Float.to_primitive(None, True) is None
    assert Integer.to_primitive(None, True) is None
    assert String.to_primitive(None, True) is None
    assert Tuple.to_primitive(None, True) is None
    assert Uuid.to_primitive(None, True) is None
    assert Uuid.to_primitive(None, True) is None