]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Handle long integer conversion in NEC portinfo validation tests
authorMatt Riedemann <mriedem@us.ibm.com>
Fri, 20 Sep 2013 15:47:25 +0000 (08:47 -0700)
committerMatt Riedemann <mriedem@us.ibm.com>
Sat, 21 Sep 2013 18:55:54 +0000 (11:55 -0700)
commitd4d06dfd18d8d085ccd390d6ebae7e3808fa8d09
tree351718b844564125f86c43ad51207100034277d6
parent9840eaa9597e6d02ad9d46a2250f30184edc19c6
Handle long integer conversion in NEC portinfo validation tests

There are a couple of tests for NEC portinfo validation that pass an id
which gets converted to a base-16 integer and then that gets converted
to a hex string. The problem is the integer conversion can make it a
long integer and then the hex built-in appends 'L' to the string, and
the tests do not account for that. This patch handles that case.

Closes-Bug: #1228212

Change-Id: Id3aed686329dae9cc4777213a4d2bcf406652e15
neutron/tests/unit/nec/test_portbindings.py