

@mock.patch('rally.plugins.workload.siege.tempfile.NamedTemporaryFile')
def test_generate_urls_list(self, mock_named_temporary_file):
    mock_urls = mock.MagicMock()
    mock_named_temporary_file.return_value = mock_urls
    name = siege.generate_urls_list(['foo', 'bar'])
    self.assertEqual(mock_urls.name, name)

dataset/ETHPy150Open openstack/rally/tests/unit/plugins/workload/test_siege.py SiegeTestCase.test_generate_urls_list/original