Home
last modified time | relevance | path

Searched refs:find_mock (Results 1 – 25 of 26) sorted by relevance

12

/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/telemetry/telemetry/internal/platform/
H A Dfuchsia_device_unittest.py83 return_value=None) as find_mock:
87 self.assertEquals(find_mock.call_count, 1)
123 return_value=None) as find_mock:
127 self.assertEquals(find_mock.call_count, 1)
146 self.assertEquals(find_mock.call_count, 1)
180 return_value=None) as find_mock:
188 find_mock.assert_not_called()
195 return_value=None) as find_mock:
203 find_mock.assert_not_called()
210 return_value=None) as find_mock:
[all …]
/dports/net/py-python-openstackclient/python-openstackclient-5.2.1/openstackclient/tests/unit/identity/v3/
H A Dtest_access_rule.py73 def test_delete_multi_access_rules_with_exception(self, find_mock): argument
74 find_mock.side_effect = [self.access_rules_mock.get.return_value,
92 find_mock.assert_any_call(self.access_rules_mock,
94 find_mock.assert_any_call(self.access_rules_mock,
97 self.assertEqual(2, find_mock.call_count)
H A Dtest_trust.py156 def test_delete_multi_trusts_with_exception(self, find_mock): argument
157 find_mock.side_effect = [self.trusts_mock.get.return_value,
175 find_mock.assert_any_call(self.trusts_mock, identity_fakes.trust_id)
176 find_mock.assert_any_call(self.trusts_mock, 'unexist_trust')
178 self.assertEqual(2, find_mock.call_count)
H A Dtest_application_credential.py305 def test_delete_multi_app_creds_with_exception(self, find_mock): argument
306 find_mock.side_effect = [self.app_creds_mock.get.return_value,
324 find_mock.assert_any_call(self.app_creds_mock,
326 find_mock.assert_any_call(self.app_creds_mock,
329 self.assertEqual(2, find_mock.call_count)
H A Dtest_group.py324 def test_delete_multi_groups_with_exception(self, find_mock): argument
325 find_mock.side_effect = [self.groups[0],
343 find_mock.assert_any_call(self.groups_mock, self.groups[0].id)
344 find_mock.assert_any_call(self.groups_mock, 'unexist_group')
346 self.assertEqual(2, find_mock.call_count)
H A Dtest_role.py497 def test_delete_multi_roles_with_exception(self, find_mock): argument
498 find_mock.side_effect = [self.roles_mock.get.return_value,
516 find_mock.assert_any_call(self.roles_mock,
519 find_mock.assert_any_call(self.roles_mock,
523 self.assertEqual(2, find_mock.call_count)
H A Dtest_user.py473 def test_delete_multi_users_with_exception(self, find_mock): argument
474 find_mock.side_effect = [self.user,
492 find_mock.assert_any_call(self.users_mock, self.user.id)
493 find_mock.assert_any_call(self.users_mock, 'unexist_user')
495 self.assertEqual(2, find_mock.call_count)
H A Dtest_project.py626 def test_delete_multi_projects_with_exception(self, find_mock): argument
627 find_mock.side_effect = [self.project,
645 find_mock.assert_any_call(self.projects_mock, self.project.id)
646 find_mock.assert_any_call(self.projects_mock, 'unexist_project')
648 self.assertEqual(2, find_mock.call_count)
/dports/net/py-python-openstackclient/python-openstackclient-5.2.1/openstackclient/tests/unit/volume/v2/
H A Dtest_consistency_group.py137 find_mock.assert_any_call(self.consistencygroups_mock,
139 find_mock.assert_any_call(self.volumes_mock,
141 find_mock.assert_any_call(self.volumes_mock,
143 self.assertEqual(3, find_mock.call_count)
399 find_mock.assert_any_call(self.consistencygroups_mock,
401 find_mock.assert_any_call(self.consistencygroups_mock,
404 self.assertEqual(2, find_mock.call_count)
592 find_mock.assert_any_call(self.consistencygroups_mock,
594 find_mock.assert_any_call(self.volumes_mock,
596 find_mock.assert_any_call(self.volumes_mock,
[all …]
H A Dtest_transfer_request.py236 side_effect=find_mock_result) as find_mock:
244 find_mock.assert_any_call(
246 find_mock.assert_any_call(self.transfer_mock, 'unexist_transfer')
248 self.assertEqual(2, find_mock.call_count)
H A Dtest_qos_specs.py239 side_effect=find_mock_result) as find_mock:
247 find_mock.assert_any_call(self.qos_mock, self.qos_specs[0].id)
248 find_mock.assert_any_call(self.qos_mock, 'unexist_qos')
250 self.assertEqual(2, find_mock.call_count)
H A Dtest_volume_backup.py220 side_effect=find_mock_result) as find_mock:
228 find_mock.assert_any_call(self.backups_mock, self.backups[0].id)
229 find_mock.assert_any_call(self.backups_mock, 'unexist_backup')
231 self.assertEqual(2, find_mock.call_count)
H A Dtest_type.py260 side_effect=find_mock_result) as find_mock:
267 find_mock.assert_any_call(
269 find_mock.assert_any_call(self.types_mock, 'unexist_type')
271 self.assertEqual(2, find_mock.call_count)
/dports/net/py-python-openstackclient/python-openstackclient-5.2.1/openstackclient/tests/unit/compute/v2/
H A Dtest_server_group.py146 side_effect=find_mock_result) as find_mock:
154 find_mock.assert_any_call(self.server_groups_mock,
156 find_mock.assert_any_call(self.server_groups_mock,
159 self.assertEqual(2, find_mock.call_count)
H A Dtest_keypair.py208 side_effect=find_mock_result) as find_mock:
215 find_mock.assert_any_call(
217 find_mock.assert_any_call(self.keypairs_mock, 'unexist_keypair')
219 self.assertEqual(2, find_mock.call_count)
H A Dtest_aggregate.py196 side_effect=find_mock_result) as find_mock:
204 find_mock.assert_any_call(self.aggregate_mock, self.fake_ags[0].id)
205 find_mock.assert_any_call(self.aggregate_mock, 'unexist_aggregate')
207 self.assertEqual(2, find_mock.call_count)
/dports/net/py-python-openstackclient/python-openstackclient-5.2.1/openstackclient/tests/unit/identity/v2_0/
H A Dtest_role.py245 def test_delete_multi_roles_with_exception(self, find_mock): argument
246 find_mock.side_effect = [self.fake_role,
264 find_mock.assert_any_call(self.roles_mock, self.fake_role.id)
265 find_mock.assert_any_call(self.roles_mock, 'unexist_role')
267 self.assertEqual(2, find_mock.call_count)
H A Dtest_project.py317 def test_delete_multi_projects_with_exception(self, find_mock): argument
318 find_mock.side_effect = [self.fake_project,
336 find_mock.assert_any_call(self.projects_mock, self.fake_project.id)
337 find_mock.assert_any_call(self.projects_mock, 'unexist_project')
339 self.assertEqual(2, find_mock.call_count)
H A Dtest_user.py416 def test_delete_multi_users_with_exception(self, find_mock): argument
417 find_mock.side_effect = [self.fake_user,
435 find_mock.assert_any_call(self.users_mock, self.fake_user.id)
436 find_mock.assert_any_call(self.users_mock, 'unexist_user')
438 self.assertEqual(2, find_mock.call_count)
/dports/net/py-python-openstackclient/python-openstackclient-5.2.1/openstackclient/tests/unit/volume/v1/
H A Dtest_transfer_request.py234 side_effect=find_mock_result) as find_mock:
242 find_mock.assert_any_call(
244 find_mock.assert_any_call(self.transfer_mock, 'unexist_transfer')
246 self.assertEqual(2, find_mock.call_count)
H A Dtest_volume_backup.py189 side_effect=find_mock_result) as find_mock:
197 find_mock.assert_any_call(self.backups_mock, self.backups[0].id)
198 find_mock.assert_any_call(self.backups_mock, 'unexist_backup')
200 self.assertEqual(2, find_mock.call_count)
H A Dtest_qos_specs.py247 side_effect=find_mock_result) as find_mock:
255 find_mock.assert_any_call(self.qos_mock, self.qos_specs[0].id)
256 find_mock.assert_any_call(self.qos_mock, 'unexist_qos')
258 self.assertEqual(2, find_mock.call_count)
H A Dtest_type.py203 side_effect=find_mock_result) as find_mock:
211 find_mock.assert_any_call(
213 find_mock.assert_any_call(self.types_mock, 'unexist_type')
215 self.assertEqual(2, find_mock.call_count)
H A Dtest_volume.py693 side_effect=find_mock_result) as find_mock:
701 find_mock.assert_any_call(self.volumes_mock, volumes[0].id)
702 find_mock.assert_any_call(self.volumes_mock, 'unexist_volume')
704 self.assertEqual(2, find_mock.call_count)
/dports/net/cloud-init/cloud-init-21.4/tests/unittests/test_datasource/
H A Dtest_configdrive.py259 find_mock = mocks.enter_context(
275 find_mock.assert_called_once_with(mock.ANY)
294 find_mock = mocks.enter_context(
302 find_mock.assert_called_once_with(mock.ANY)

12