Fix py3 mock cannot be compared to int
Fix py3 mock cannot be compared to int

Change-Id: I14a3280cb1e7c963be99e4ea5ec05c9cec00a289
Closes-Bug: #1563222

openstack/dragonflow,openstack/dragonflow,FrankDuan/df_code,FrankDuan/df_code,openstack/dragonflow,FrankDuan/df_code