fixed test

This commit is contained in:
Andreas Preikschat 2013-04-20 20:05:01 +02:00
parent a393302a07
commit 186ca920da
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ class TestImageManager(TestCase):
# WHEN: The image bytes are requested.
byte_array = self.image_manager.get_image_bytes(TEST_PATH, u'church.jpg')
# THEN: Type should be a byte array.
self.assertEqual(isinstance(byte_array, QtCore.QByteArray), True, u'The returned object should be a QByteArray')
# THEN: Type should be a str.
self.assertEqual(isinstance(byte_array, str), True, u'The returned object should be a str')
# WHEN the image is retrieved has not been loaded
# THEN a KeyError is thrown