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

This commit is contained in:
Felipe Garcia Bulsoni 2017-08-30 14:41:12 -03:00 committed by Toshio Kuratomi
parent 1a602096f5
commit eeb8128baf
2 changed files with 8 additions and 0 deletions

View file

@ -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()

View file

@ -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()