Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- from my_garage_door_implementation import *
- from garage_door_monitor import GarageDoorMonitor
- import time
- class WaitingGarage(MyGarageDoorImplementation):
- def __init__(self):
- MyGarageDoorImplementation.__init__(self)
- def open(self):
- ret = super(WaitingGarage, self).open()
- time.sleep(20)
- return ret
- def close(self):
- ret = super(WaitingGarage, self).close()
- time.sleep(20)
- return ret
- garage = WaitingGarage()
- openMethod = garage.open
- closeMethod = garage.close
- gdm = GarageDoorMonitor(openMethod, closeMethod)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement