diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-04-27 15:03:43 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:16 -0300 |
commit | 8eb96fc200e2ecebdd0945475c10c458c308ef2a (patch) | |
tree | fb9fab87572bca1fcaa0510613fd4d33bcdbdefd /tests/QtCore/bug_829.py | |
parent | 26e45be10730d10f9d04b1c6548ac545106ce643 (diff) |
Created unit test for bug 829.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'tests/QtCore/bug_829.py')
-rw-r--r-- | tests/QtCore/bug_829.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/QtCore/bug_829.py b/tests/QtCore/bug_829.py new file mode 100644 index 000000000..a805d8765 --- /dev/null +++ b/tests/QtCore/bug_829.py @@ -0,0 +1,18 @@ +# Test case for PySide bug 829 +# Thomas Perl <thp.io/about>; 2011-04-16 + +import unittest +from PySide.QtCore import QSettings +from helper import adjust_filename + +class QVariantConversions(unittest.TestCase): + def testDictionary(self): + s = QSettings(adjust_filename('bug_829.conf', __file__), QSettings.IniFormat) + #Save value + s.setValue('x', {1: 'a'}) + s.sync() + #Restore value + self.assertEqual(s.value('x'), {1: 'a'}) + +if __name__ == '__main__': + unittest.main() |