(self)
| 12 | class TestUUID(TestCase): |
| 13 | @skipUnlessDBFeature("supports_uuid4_function") |
| 14 | def test_uuid4(self): |
| 15 | m1 = UUIDModel.objects.create() |
| 16 | m2 = UUIDModel.objects.create() |
| 17 | UUIDModel.objects.update(uuid=UUID4()) |
| 18 | m1.refresh_from_db() |
| 19 | m2.refresh_from_db() |
| 20 | self.assertIsInstance(m1.uuid, uuid.UUID) |
| 21 | self.assertEqual(m1.uuid.version, 4) |
| 22 | self.assertNotEqual(m1.uuid, m2.uuid) |
| 23 | |
| 24 | @skipUnlessDBFeature("supports_uuid7_function") |
| 25 | def test_uuid7(self): |
nothing calls this directly
no test coverage detected