summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2007-08-29 20:14:37 +0000
committerJohan Dahlin <johan@src.gnome.org>2007-08-29 20:14:37 +0000
commitfef627a81410ee832b832e4fe5f341d815fa099b (patch)
tree7ff9767917013619dfe55e0c36f5cb92668b9a9d /tests
parentfb5f535dd9ade14ea0cb129fb548a3afd4dcfb96 (diff)
downloadpygtk-fef627a81410ee832b832e4fe5f341d815fa099b.tar.gz
Fix bug in hash() implementation and test it properly
svn path=/trunk/; revision=2898
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pango.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/test_pango.py b/tests/test_pango.py
index a0aeb82a..c7459c2a 100644
--- a/tests/test_pango.py
+++ b/tests/test_pango.py
@@ -23,18 +23,17 @@ class TestLanguage(unittest.TestCase):
class TestFontDescription(unittest.TestCase):
def testStr(self):
- font = pango.FontDescription('monospace 10')
- self.assertEqual(str(font), 'monospace 10')
+ fontdescr = pango.FontDescription('monospace 10')
+ self.assertEqual(str(fontdescr), 'monospace 10')
def testHash(self):
- font = pango.FontDescription('monospace 10')
- font2 = pango.FontDescription('monospace 10')
- self.assertNotEqual(hash(font), hash(font2))
- # FIXME: How to test this properly?
+ fontdescr = pango.FontDescription('monospace 10')
+ fontdescr2 = pango.FontDescription('monospace 10')
+ self.assertEqual(hash(fontdescr), hash(fontdescr2))
def testEquals(self):
- font = pango.FontDescription('monospace 10')
- font2 = pango.FontDescription('monospace 10')
- font3 = pango.FontDescription('monospace 12')
- self.assertEqual(font, font2)
- self.assertNotEqual(font, font3)
+ fontdescr = pango.FontDescription('monospace 10')
+ fontdescr2 = pango.FontDescription('monospace 10')
+ fontdescr3 = pango.FontDescription('monospace 12')
+ self.assertEqual(fontdescr, fontdescr2)
+ self.assertNotEqual(fontdescr, fontdescr3)