Fix python3 issues in Netvirt
[integration/test.git] / csit / libraries / CrudLibrary.py
index d5979ea5853dce6731bbecfd7856dcf243015a4f..baaf5f4547f30e12bdc45e503e3993a226607636 100644 (file)
@@ -242,7 +242,7 @@ def testlongevity(inputtime, port, *ips):
             resp = getCars(ip, port, 0)
             if resp.status_code == 200:
                 print("Pass: car data available after addition")
-                if resp.content.find("manufacturer100") == -1:
+                if resp.text.find("manufacturer100") == -1:
                     print("Fail: last car is not there")
                 else:
                     print("Pass: car data matches")
@@ -254,7 +254,7 @@ def testlongevity(inputtime, port, *ips):
             resp = getPersons(ip, port, 0)
             if resp.status_code == 200:
                 print("Pass: people data available after addition")
-                if resp.content.find("user100") == -1:
+                if resp.text.find("user100") == -1:
                     print("Fail: last person is not there")
                 else:
                     print("Pass: person data matches")
@@ -267,7 +267,7 @@ def testlongevity(inputtime, port, *ips):
             resp = getCarPersonMappings(ip, port, 0)
             if resp.status_code == 200:
                 print("Pass: car person data available after addition")
-                if resp.content.find("user100") == -1:
+                if resp.text.find("user100") == -1:
                     print("Fail: last car person is not there")
                 else:
                     print("Pass: car person data matches")