test_caless: fix TypeError on domain_level compare

Fixes an error where we were getting domain_level None and after
switching to Py3 we hit TypeError because of comparing None and int.

https://pagure.io/freeipa/issue/7254

Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Michal Reznik 2017-11-09 18:22:17 +01:00
parent a48f6511f6
commit 495b85793c

View File

@ -799,6 +799,7 @@ class TestReplicaInstall(CALessBase):
cls.prepare_cacert('ca1')
result = cls.install_server()
assert result.returncode == 0
cls.domain_level = tasks.domainlevel(cls.master)
@replica_install_teardown
def test_no_certs(self):