summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2013-10-04 13:41:08 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2013-10-07 14:41:28 -0700
commitc86b2fe8d01070f06c45fffd910d890afba1313a (patch)
tree0d8c8becbd33e0845174e0278a0f9921187e3040 /tests
parente7b758badd0ab0b147117859f7871c39fb5399c1 (diff)
downloadpygobject-c86b2fe8d01070f06c45fffd910d890afba1313a.tar.gz
Add GIBaseInfo.equal method
Break PyGIBaseInfo rich compare into two methods: equal and richcompare. Equal is a direct exposure of the GI method and richcompare makes use of this with additional support for Pyton "==" and "!=" operators. https://bugzilla.gnome.org/show_bug.cgi?id=709008
Diffstat (limited to 'tests')
-rw-r--r--tests/test_repository.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_repository.py b/tests/test_repository.py
index 76d4417a..d890c7fc 100644
--- a/tests/test_repository.py
+++ b/tests/test_repository.py
@@ -78,6 +78,7 @@ class Test(unittest.TestCase):
info2 = repo.find_by_name('GIMarshallingTests', 'Object')
self.assertFalse(info is info2)
self.assertEqual(info, info2)
+ self.assertTrue(info.equal(info2))
def test_object_info(self):
info = repo.find_by_name('GIMarshallingTests', 'Object')