Commit Graph

4 Commits

Author SHA1 Message Date
Michał Dulko 66d31e7d65 Fix unit tests
pyroute2 changed structure of the modules a bit and the unit tests were
assuming it. This commit makes sure tests work with new pyroute2.

Change-Id: I013f2750ca1371d3b4d5e2f618067cd9b70e76e4
2021-09-15 12:32:40 +02:00
Sean McGinnis 0f47555b38
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Ibe31e2d17b8baf88c40e00e3beaa019b13594c7c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:53:47 -05:00
Kien Nguyen df421a9b2e Add compatibility for pyroute2>=0.4.15
Pyroute2 was updated, its change make some testcases failed.
This patch fix the problem with pyroute2 update.

Change-Id: I300f9830927a8babf9112f9aff265ef4b2e5e03e
Closes-Bug: #1700469
2017-06-26 15:00:31 +07:00
Dongcan Ye d4e71a3794 Add unit tests for nested binding driver
Add unit test for binding drivers: IPVLAN, MACVLAN,
and VLAN.

Change-Id: I8d25630b1543f9760cc34f331711804c7a1dde0f
Closes-Bug: #1644403
2017-03-06 13:27:03 +08:00