Example #1
0
 def test_config_utm_profile_exception_1(self):
     try:
         utm_command.config_utm_profile()
     except Exception as err:
         self.assertEqual(
             err.args[0],
             "Device handle is a mandatory argument")
Example #2
0
 def test_config_utm_profile_execution_8(self):
     lst = [Response("Suchi")]
     self.mocked_obj.config = MagicMock(side_effect=lst)
     self.assertEqual(utm_command.config_utm_profile(device=self.mocked_obj, message="Suchishraba", commit="True"), None)
Example #3
0
 def test_config_utm_profile_execution_6(self):
     lst = [Response("Suchi")]
     self.mocked_obj.config = MagicMock(side_effect=lst)
     self.assertEqual(utm_command.config_utm_profile(device=self.mocked_obj, profile="websense_redirect"), None)
Example #4
0
 def test_config_utm_profile_execution_5(self):
     lst = [Response("Suchi")]
     self.mocked_obj.config = MagicMock(side_effect=lst)
     self.assertEqual(utm_command.config_utm_profile(device=self.mocked_obj, profile="juniper_local"), None)
Example #5
0
 def test_config_utm_profile_execution_1(self):
     lst = [Response("Suchi")]
     self.mocked_obj.config = MagicMock(side_effect=lst)
     self.assertEqual(utm_command.config_utm_profile(device=self.mocked_obj, mode="delete_all"), None)