@@ -0,0 +1,1197 @@
+import uuid%0A%0Aimport pytest%0A%0Afrom cornflake.fields import UUIDField, ValidationError%0A%0A%0A@pytest.mark.parametrize(('value', 'expected'), %5B%0A    ('8efa76c7-4e42-4424-83bb-fbbc4f758ad1', '8efa76c7-4e42-4424-83bb-fbbc4f758ad1'),%0A    (uuid.UUID('8efa76c7-4e42-4424-83bb-fbbc4f758ad1'), '8efa76c7-4e42-4424-83bb-fbbc4f758ad1'),%0A%5D)%0Adef test_to_representation(value, expected):%0A    assert UUIDField().to_representation(value) == expected%0A%0A%0A@pytest.mark.parametrize(('data', 'expected'), %5B%0A    ('8efa76c7-4e42-4424-83bb-fbbc4f758ad1', '8efa76c7-4e42-4424-83bb-fbbc4f758ad1'),%0A    ('8EFA76C7-4E42-4424-83BB-FBBC4F758AD1', '8efa76c7-4e42-4424-83bb-fbbc4f758ad1'),%0A    ('8efa76c74e42442483bbfbbc4f758ad1', '8efa76c7-4e42-4424-83bb-fbbc4f758ad1'),%0A    (uuid.UUID('8efa76c7-4e42-4424-83bb-fbbc4f758ad1'), '8efa76c7-4e42-4424-83bb-fbbc4f758ad1'),%0A%5D)%0Adef test_to_internal_value(data, expected):%0A    assert UUIDField().to_internal_value(data) == expected%0A%0A%0A@pytest.mark.parametrize('data', %5B%0A    '',%0A    'hello',%0A    True,%0A    False,%0A    %7B'foo': 1, 'bar': 2%7D,%0A    %5B'foo', 'bar', 'baz'%5D,%0A%5D)%0Adef test_to_internal_value_invalid(data):%0A    with pytest.raises(ValidationError):%0A        UUIDField().to_internal_value(data)%0A

Add UUIDField tests