Remove extra assertions

This commit is contained in:
Bo Maryniuk 2017-09-19 11:34:25 +02:00
parent 755bc35585
commit f8c016cd48

View File

@ -103,12 +103,10 @@ description:
mod = 'four.five.six'
with pytest.raises(ImportError) as import_error:
self.resolver.load_module(mod)
assert 'No module named ansible.modules.{0}'.format(mod) in str(import_error.value)
mod = 'i.even.do.not.exist.at.all'
with pytest.raises(LoaderError) as loader_error:
self.resolver.load_module(mod)
assert 'Module "{0}" was not found'.format(mod) in str(loader_error.value)
def test_resolver_module_loader(self):
'''
@ -128,4 +126,3 @@ description:
patch('salt.modules.ansiblegate.importlib.import_module', lambda x: x):
with pytest.raises(LoaderError) as loader_error:
self.resolver.load_module('something.strange')
assert 'Module "something.strange" was not found' in str(loader_error)