Fix tests for unsuccessful if less than 2 nameservers, successful if betweeen 2 and 13 nameservers, and unsuccessful if more than 13 nameservers

This commit is contained in:
Rebecca Hsieh 2023-09-22 08:29:15 -07:00
parent 803a469ba0
commit c747be074c
No known key found for this signature in database
GPG key ID: 644527A2F375A379
2 changed files with 13 additions and 138 deletions

View file

@ -349,7 +349,7 @@ class Domain(TimeStampedModel, DomainHelper):
try:
print("COUNT IS ")
print(count)
if len(count) >= 2 or len(count) <= 13:
if count >= 2 and count <= 13:
self.ready()
self.save()
except Exception as err: