| 1 |
if __name__ == '__main__': |
| 2 |
from tests.mock import patch |
| 3 |
|
| 4 |
import eventlet |
| 5 |
from eventlet import hubs |
| 6 |
with patch.object(hubs, 'notify_opened') as mock_func: |
| 7 |
eventlet.monkey_patch(builtins=True) |
| 8 |
with open(__file__) as f: |
| 9 |
mock_func.assert_called_with(f.fileno()) |
| 10 |
print('pass') |