diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2013-10-04 13:41:08 -0700 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2013-10-07 14:41:28 -0700 |
commit | c86b2fe8d01070f06c45fffd910d890afba1313a (patch) | |
tree | 0d8c8becbd33e0845174e0278a0f9921187e3040 /tests/test_repository.py | |
parent | e7b758badd0ab0b147117859f7871c39fb5399c1 (diff) | |
download | pygobject-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/test_repository.py')
-rw-r--r-- | tests/test_repository.py | 1 |
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') |