Adding in some initial tests

This commit is contained in:
Kevin Glisson
2015-06-24 16:48:40 -07:00
parent 4330ac9c05
commit 5111f055fa
29 changed files with 387 additions and 299 deletions

View File

@ -11,6 +11,14 @@ class LemurException(Exception):
current_app.logger.error(self)
class DuplicateError(LemurException):
def __init__(self, key):
self.key = key
def __str__(self):
return repr("Duplicate found! Could not create: {0}".format(self.key))
class AuthenticationFailedException(LemurException):
def __init__(self, remote_ip, user_agent):
self.remote_ip = remote_ip