It might be good to make this an ``elif list(result.keys())[0] is 'FAIL':`` and have the ``else:`` part raise an exception.  This will catch spelling mistakes/typos and also allow for easy expansion (maybe in future we add a "SKIP" result).