def setUp(self):
     self.spec = ArgumentSpec()
     try:
         self.p1 = patch('library.modules.bigip_service_policy.module_provisioned')
         self.m1 = self.p1.start()
         self.m1.return_value = True
     except Exception:
         self.p1 = patch('ansible_collections.notmintest.not_a_real_collection.plugins.modules.bigip_service_policy.module_provisioned')
         self.m1 = self.p1.start()
         self.m1.return_value = True
Esempio n. 2
0
 def setUp(self):
     self.spec = ArgumentSpec()
     try:
         self.p1 = patch('library.modules.bigip_service_policy.module_provisioned')
         self.m1 = self.p1.start()
         self.m1.return_value = True
     except Exception:
         self.p1 = patch('ansible.modules.network.f5.bigip_service_policy.module_provisioned')
         self.m1 = self.p1.start()
         self.m1.return_value = True
 def setUp(self):
     self.spec = ArgumentSpec()