mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
15 lines
350 B
Python
15 lines
350 B
Python
|
|
from __future__ import absolute_import
|
|
|
|
from pyroute2 import IPDB
|
|
from tests.support.unit import TestCase
|
|
from salt.beacons.network_settings import ATTRS
|
|
|
|
|
|
class Pyroute2TestCase(TestCase):
|
|
|
|
def test_interface_dict_fields(self):
|
|
with IPDB() as ipdb:
|
|
for attr in ATTRS:
|
|
self.assertIn(attr, ipdb.interfaces[1])
|