PatchedDriver overload

This commit is contained in:
Pieprzycki Piotr 2016-12-19 12:22:05 +01:00
parent aa1ad764f1
commit 37ae8512c0
1 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,18 @@ class PatchedVyOSDriver(vyos.VyOSDriver):
self.patched_attrs = ['device']
self.device = FakeVyOSDevice()
def disconnect(self):
pass
def is_alive(self):
return {
'is_alive': True # In testing everything works..
}
def open(self):
pass
class FakeVyOSDevice(BaseTestDouble):
"""VyOS device test double."""