diff options
Diffstat (limited to 'tests/test_gio.py')
| -rw-r--r-- | tests/test_gio.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index 8244852..d5b92b3 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -413,7 +413,16 @@ class TestFile(unittest.TestCase): loop = glib.MainLoop() loop.run() - + def test_eq(self): + self.assertEqual(gio.File('foo'), + gio.File('foo')) + self.assertNotEqual(gio.File('foo'), + gio.File('bar')) + + def test_hash(self): + self.assertEquals(hash(gio.File('foo')), + hash(gio.File('foo'))) + class TestGFileEnumerator(unittest.TestCase): def setUp(self): |
