mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-10-22 03:34:24 +03:00
Update tests/test_encoders.py
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
This commit is contained in:
parent
8b3ae8f42f
commit
d291d7fbc9
|
@ -84,7 +84,7 @@ class JSONEncoderTests(TestCase):
|
|||
Tests encoding ipaddress IPv4Address object
|
||||
"""
|
||||
obj = ipaddress.IPv4Address("192.168.1.1")
|
||||
assert self.encoder.default(obj) == str(obj)
|
||||
assert self.encoder.default(obj) == "192.168.1.1"
|
||||
|
||||
def test_encode_ipaddress_ipv6address(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user