From df71995320cb917db49087e5cc5dd8dbcc1ca2fd Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Oct 06 2017 21:16:03 +0000 Subject: fix up test_import_image_internal.py --- diff --git a/tests/test_hub/test_import_image_internal.py b/tests/test_hub/test_import_image_internal.py index b23f728..75dedf4 100644 --- a/tests/test_hub/test_import_image_internal.py +++ b/tests/test_hub/test_import_image_internal.py @@ -105,7 +105,7 @@ class TestImportImageInternal(unittest.TestCase): self.assertEquals(len(cursor.execute.mock_calls), 1) expression, kwargs = cursor.execute.mock_calls[0][1] expression = " ".join(expression.split()) - expected = 'INSERT INTO archive_rpm_components (archive_id,rpm_id) ' + \ - 'VALUES (%(archive_id)i,%(rpm_id)i)' + expected = 'INSERT INTO archive_rpm_components (archive_id, rpm_id) ' + \ + 'VALUES (%(archive_id)s, %(rpm_id)s)' self.assertEquals(expression, expected) self.assertEquals(kwargs, {'archive_id': 9, 'rpm_id': 6})