Added __main__ method to tests so they can be run directly through Python

pull/30308/head
Felipe Garcia Bulsoni 8 years ago committed by Toshio Kuratomi
parent 1a602096f5
commit eeb8128baf

@ -172,3 +172,7 @@ class FcNetworkModuleSpec(unittest.TestCase,
ansible_facts=dict(fc_network=resource_data),
msg=FcNetworkModule.MSG_ALREADY_PRESENT
)
if __name__ == '__main__':
unittest.main()

@ -111,3 +111,7 @@ class NetworkSetFactsSpec(unittest.TestCase,
self.mock_ansible_module.exit_json.assert_called_once_with(
changed=False,
ansible_facts=dict(network_sets=network_sets))
if __name__ == '__main__':
unittest.main()

Loading…
Cancel
Save