diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-18 14:59:09 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-18 16:12:58 -0200 |
commit | 53500b6542c176c10598a42b04d88bb65913a2b9 (patch) | |
tree | c7528b2635029fabd98c7dc287f862cfdfd85049 /tests/qtcore | |
parent | 2f726de3600e5386fc1bc70776c5cb29a637b5ab (diff) |
Does not makes sense concat a unicode string with a QByteArray.
Because the user does not know nothing about the internal representation of the unicode string.
Reviewed by Lauro Moura <lauro.moura@openbossa.org>
Diffstat (limited to 'tests/qtcore')
-rwxr-xr-x | tests/qtcore/qbytearray_concatenation_operator_test.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/tests/qtcore/qbytearray_concatenation_operator_test.py b/tests/qtcore/qbytearray_concatenation_operator_test.py index 201c8173c..932f84d93 100755 --- a/tests/qtcore/qbytearray_concatenation_operator_test.py +++ b/tests/qtcore/qbytearray_concatenation_operator_test.py @@ -35,17 +35,19 @@ class QByteArrayConcatenationOperatorTest(unittest.TestCase): self.assertTrue(concat_python_string_add_qbytearray_worked) self.assertEqual(result.__class__.__name__, 'QByteArray') - def testConcatPythonUnicodeAndQByteArray(self): - #Test concatenation of a Python unicode object with a QByteArray, in this order - concat_python_unicode_add_qbytearray_worked = True - qba = QByteArray('foo') - result = None - try: - result = u'ümlaut' + qba - except: - concat_python_unicode_add_qbytearray_worked = False - self.assertTrue(concat_python_unicode_add_qbytearray_worked) - self.assertEqual(result.__class__.__name__, 'unicode') + # NOTICE: Does not makes sense concat a unicode string with a QByteArray, because the + # user does not know nothing about the internal representation of the unicode string. + #def testConcatPythonUnicodeAndQByteArray(self): + ##Test concatenation of a Python unicode object with a QByteArray, in this order + #concat_python_unicode_add_qbytearray_worked = True + #qba = QByteArray('foo') + #result = None + #try: + #result = u'ümlaut' + qba + #except: + #concat_python_unicode_add_qbytearray_worked = False + #self.assertTrue(concat_python_unicode_add_qbytearray_worked) + #self.assertEqual(result.__class__.__name__, 'unicode') if __name__ == '__main__': unittest.main() |