Forked from morenoh149/django_synthetic_monitor.py
Last active
January 11, 2017 17:42
-
-
Save altendky/703f6dead8e602d91f03ba9504f950c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def monitor_model(): | |
try: | |
user = User().save() | |
except: | |
result = 'failed' | |
else: | |
result = 'passed' | |
user.delete() | |
return django.http.Response(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment