Remove calls to print()

This commit is contained in:
Alexander Todorov 2018-02-14 15:23:04 +02:00 committed by Brian C. Lane
parent 5500ec8c06
commit af8c193b52

View File

@ -372,7 +372,6 @@ class ServerTestCase(unittest.TestCase):
resp = self.server.get("/api/v0/recipes/diff/glusterfs/NEWEST/WORKSPACE") resp = self.server.get("/api/v0/recipes/diff/glusterfs/NEWEST/WORKSPACE")
data = json.loads(resp.data) data = json.loads(resp.data)
self.assertNotEqual(data, None) self.assertNotEqual(data, None)
print(data)
result = {"diff": [{"new": {"Description": "An example GlusterFS server with samba, ws version"}, result = {"diff": [{"new": {"Description": "An example GlusterFS server with samba, ws version"},
"old": {"Description": "An example GlusterFS server with samba"}}, "old": {"Description": "An example GlusterFS server with samba"}},
{"new": {"Version": "0.3.0"}, {"new": {"Version": "0.3.0"},
@ -460,7 +459,6 @@ class ServerTestCase(unittest.TestCase):
resp = self.server.get("/api/v0/modules/list") resp = self.server.get("/api/v0/modules/list")
data = json.loads(resp.data) data = json.loads(resp.data)
self.assertNotEqual(data, None) self.assertNotEqual(data, None)
print(data)
modules = data.get("modules") modules = data.get("modules")
self.assertEqual(len(modules) > 10, True) self.assertEqual(len(modules) > 10, True)
self.assertEqual(modules[0]["group_type"], "rpm") self.assertEqual(modules[0]["group_type"], "rpm")
@ -468,7 +466,6 @@ class ServerTestCase(unittest.TestCase):
resp = self.server.get("/api/v0/modules/list/d*") resp = self.server.get("/api/v0/modules/list/d*")
data = json.loads(resp.data) data = json.loads(resp.data)
self.assertNotEqual(data, None) self.assertNotEqual(data, None)
print(data)
modules = data.get("modules") modules = data.get("modules")
self.assertEqual(len(modules) > 0, True) self.assertEqual(len(modules) > 0, True)
self.assertEqual(modules[0]["name"].startswith("d"), True) self.assertEqual(modules[0]["name"].startswith("d"), True)