Browse Source

fix(api): tests: fixed zone name normalization

Nils Wisiol 6 years ago
parent
commit
70c59df4e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/desecapi/tests/base.py

+ 1 - 1
api/desecapi/tests/base.py

@@ -233,7 +233,7 @@ class MockPDNSTestCase(APITestCase):
         if not isinstance(arg, list):
             return cls._normalize_name([arg])[0]
         else:
-            return [x if x.endswith('.') else x + '.' for x in arg]
+            return [x.rstrip('.') + '.' for x in arg]
 
     @classmethod
     def request_pdns_zone_create(cls):