Extended the error status factory and renamed the method to show that
This commit is contained in:
@@ -67,7 +67,7 @@ def test_error_status():
|
|||||||
|
|
||||||
def test_status_from_exception():
|
def test_status_from_exception():
|
||||||
e = utils.UnknownPrincipal("Error resolving principal")
|
e = utils.UnknownPrincipal("Error resolving principal")
|
||||||
stat = utils.status_from_exception_factory(e)
|
stat = utils.error_status_factory(e)
|
||||||
status_text = "%s" % stat
|
status_text = "%s" % stat
|
||||||
print status_text
|
print status_text
|
||||||
assert status_text == ERROR_STATUS
|
assert status_text == ERROR_STATUS
|
||||||
|
|||||||
Reference in New Issue
Block a user