Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *args, **kwargs):
super(TestApiSwitchports, self).__init__(*args, **kwargs)
self.instance = pyeapi.api.switchports.instance(None)
self.config = open(get_fixture('running_config.text')).read()
def __init__(self, *args, **kwargs):
super(TestApiIpinterfaces, self).__init__(*args, **kwargs)
self.instance = pyeapi.api.ipinterfaces.instance(None)
self.config = open(get_fixture('running_config.text')).read()
def test_instance(self):
result = pyeapi.api.interfaces.instance(None)
self.assertIsInstance(result, pyeapi.api.interfaces.Interfaces)
def test_instance(self):
result = pyeapi.api.varp.instance(None)
self.assertIsInstance(result, pyeapi.api.varp.Varp)
def __init__(self, *args, **kwargs):
super(TestApiVarp, self).__init__(*args, **kwargs)
self.instance = pyeapi.api.varp.Varp(None)
self.config = open(get_fixture('running_config.varp')).read()
def __init__(self, *args, **kwargs):
super(TestApiUsers, self).__init__(*args, **kwargs)
self.instance = pyeapi.api.users.instance(None)
self.config = open(get_fixture('running_config.text')).read()
def __init__(self, *args, **kwargs):
super(TestApiVrfs, self).__init__(*args, **kwargs)
self.instance = pyeapi.api.vrfs.instance(None)
self.config = open(get_fixture('running_config.vrf')).read()
def test_instance(self):
result = pyeapi.api.staticroute.instance(None)
self.assertIsInstance(result, pyeapi.api.staticroute.StaticRoute)
def __init__(self, *args, **kwargs):
super(TestApiRoutemaps, self).__init__(*args, **kwargs)
self.instance = pyeapi.api.routemaps.Routemaps(None)
self.config = open(get_fixture('running_config.routemaps')).read()
def test_instance(self):
result = pyeapi.api.acl.instance(None)
self.assertIsInstance(result, pyeapi.api.acl.StandardAcls)