summaryrefslogtreecommitdiff
path: root/dev-python/fqdn/files/1.4.0-tests.patch
blob: 0804be7d175bdf9d3c9825f3735ff1bb5192a1c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 0d6a6191a49fac252a96f72bd3193f21ae56424f Mon Sep 17 00:00:00 2001
From: ypcrts <32625281+ypcrts@users.noreply.github.com>
Date: Sun, 26 Apr 2020 01:51:43 -0400
Subject: [PATCH] test __str__ to be congruent with absolute

---
 tests/test_fqdn.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_fqdn.py b/tests/test_fqdn.py
index 37fcf52..60c8607 100644
--- a/tests/test_fqdn.py
+++ b/tests/test_fqdn.py
@@ -21,8 +21,8 @@ def test_constructor_raises_on_bytes(self):
 
     def test_str(self):
         d = "greatdomain.com"
-        assert d == str(FQDN(d))
-        assert d == str(FQDN(d + "."))
+        f = FQDN(d)
+        assert f.absolute == str(f)
 
     def test_rfc_1035_s_2_3_4__label_max_length(self):
         self.__assert_valid(