def test_assess_status_func(self, enable_nova_metadata, make_assess_status_func, determine_ports, services, REQUIRED_INTERFACES): services.return_value = 's1' determine_ports.return_value = 'p1' enable_nova_metadata.return_value = False REQUIRED_INTERFACES.copy.return_value = {'Test': True} nutils.assess_status_func('test-config') # ports=None whilst port checks are disabled. make_assess_status_func.assert_called_once_with('test-config', {'Test': True}, services='s1', ports=None)
def test_assess_status_func(self, enable_nova_metadata, make_assess_status_func, determine_ports, services, REQUIRED_INTERFACES): services.return_value = 's1' determine_ports.return_value = 'p1' enable_nova_metadata.return_value = False REQUIRED_INTERFACES.copy.return_value = {'Test': True} nutils.assess_status_func('test-config') # ports=None whilst port checks are disabled. make_assess_status_func.assert_called_once_with( 'test-config', {'Test': True}, services='s1', ports=None)