Change assert statement to raise in common/utils 53/60353/1
authorMiikka Koistinen <miikka.koistinen@nokia.com>
Mon, 30 Jul 2018 13:01:14 +0000 (16:01 +0300)
committerMiikka Koistinen <miikka.koistinen@nokia.com>
Mon, 30 Jul 2018 13:01:14 +0000 (16:01 +0300)
commit43c189b709b49b9b0b3b5d9dedd40872e2dff4cb
treef97ed992e8f3362833ebce15ca1164533d5097cb
parentd82856a7b717a3b48c3dfb21bf5d270c0be335ff
Change assert statement to raise in common/utils

This modification utilises a custom exception to be raised if an invalid
mac address is passed to the function "mac_address_to_hex_list".

JIRA: YARDSTICK-966

Change-Id: Ic2940276f500e9710c54963a445a137e73bd6b25
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
yardstick/common/exceptions.py
yardstick/common/utils.py
yardstick/tests/unit/common/test_utils.py