Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/r/a/rally-HEAD/tests/verification/verifiers/test_tempest.py   rally(Download)
        mock_open.assert_called_once_with(self.verifier.config_file, 'w+')
        conf.write.assert_called_once_with(mock_file.__enter__())
        mock_file.__exit__.assert_called_once_with(None, None, None)
 
    @mock.patch('os.path.exists')

src/i/r/ironic-HEAD/ironic/tests/test_utils.py   ironic(Download)
                open_mock.assert_called_once_with(mock.ANY)
                fake_file.read.called_once_with()
                fake_context_manager.__exit__.assert_called_once_with(mock.ANY,
                                                                      mock.ANY,
                                                                      mock.ANY)