def setUp(self): self.output = StringIO() self.http_client_mock = HttpClientMock() self.command = QueryRpmCommand(self.output) self.command.httpClient = self.http_client_mock files = '[{"repo":"production", "filename":"a-a-a-12.2-15.noarch.rpm"},' + \ '{"repo":"production", "filename":"a-a-a-12.3-15.noarch.rpm"},' + \ '{"repo":"production", "filename":"a-a-b-12.2-15.noarch.rpm"},' + \ '{"repo":"production", "filename":"b-a-a-12.2-15.noarch.rpm"},' + \ '{"repo":"production", "filename":"b-a-b-12.2-15.noarch.rpm"}]' self.http_client_mock.files_for('production', 'noarch', files)