def test_library_doesnt_exist(): self = create_autospec(Arctic) self.get_library.side_effect = LibraryNotFoundException('not found') assert not Arctic.library_exists(self, 'mylib')
def test_library_exists(): self = create_autospec(Arctic) self.get_library.return_value = 'not an exception' assert Arctic.library_exists(self, 'mylib')