Update unit test to provide osmajorrelease grain.

This commit is contained in:
Andreas Thienemann 2017-09-06 03:46:00 +02:00 committed by Andreas Thienemann
parent 42fd04f8dd
commit 6aefa5c3f8

View File

@ -58,7 +58,7 @@ class RhipTestCase(TestCase, LoaderModuleMockMixin):
'''
Test to build an interface script for a network interface.
'''
with patch.dict(rh_ip.__grains__, {'os': 'Fedora'}):
with patch.dict(rh_ip.__grains__, {'os': 'Fedora', 'osmajorrelease': 26}):
with patch.object(rh_ip, '_raise_error_iface', return_value=None):
self.assertRaises(AttributeError,