Replaced mox with mock in test_loguserdata

Also fixed a bug in loguserdata for an incorrect tuple instantiation

Change-Id: Ic7bcf018b771505e3ef6c747e0624f929463eb5b
This commit is contained in:
Jay Dobies
2015-10-09 15:45:00 -04:00
parent a8ece6e7dd
commit 9ff5437e72
2 changed files with 114 additions and 117 deletions

View File

@@ -42,7 +42,7 @@ def chk_ci_version():
raise Exception()
# data[1] has such format: 'cloud-init 0.7.5\n', need to parse version
v = re.split(' |\n', data[1])[1].split('.')
return tuple(v) >= tuple('0', '6', '0')
return tuple(v) >= tuple(['0', '6', '0'])
def init_logging():