MCPcopy Index your code
hub / github.com/encode/django-rest-framework / test_encode_uuid

Method test_encode_uuid

tests/test_encoders.py:74–79  ·  view source on GitHub ↗

Tests encoding a UUID object

(self)

Source from the content-addressed store, hash-verified

72 assert self.encoder.default(delta) == str(delta.total_seconds())
73
74 def test_encode_uuid(self):
75 """
76 Tests encoding a UUID object
77 """
78 unique_id = uuid4()
79 assert self.encoder.default(unique_id) == str(unique_id)
80
81 def test_encode_ipaddress_ipv4address(self):
82 """

Callers

nothing calls this directly

Calls 1

defaultMethod · 0.80

Tested by

no test coverage detected