Coverage for tests/test_fields.py: 100%
6 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-08-27 18:25 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-08-27 18:25 +0000
1from prisma import Base64
4def test_base64_eq() -> None:
5 """Base64 field instances can be compared"""
6 data = Base64.encode(b'foo')
7 assert (data == Base64.encode(b'foo')) is True
8 assert (data == Base64.encode(b'foo1')) is False
9 assert (data == b'foo') is False