mitogen/tests/data/plain_old_module.py

20 lines
314 B
Python
Raw Normal View History

2017-09-15 06:24:41 +00:00
"""
I am a plain old module with no interesting dependencies or import machinery
fiddlery.
"""
import math
def get_sentinel_value():
# Some proof we're even talking to the mitogen-test Docker image
return file('/etc/sentinel').read()
def add(x, y):
return x + y
2017-09-15 06:24:41 +00:00
def pow(x, y):
return x ** y