[pygobject] tests: Add test for GIRepository.UnionInfo.get_size()
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: Add test for GIRepository.UnionInfo.get_size()
- Date: Mon, 2 Mar 2015 06:13:58 +0000 (UTC)
commit 747fc3754c296ad5481d354bbf35521f886c5c61
Author: Garrett Regier <garrettregier gmail com>
Date: Sun Mar 1 03:30:46 2015 -0800
tests: Add test for GIRepository.UnionInfo.get_size()
https://bugzilla.gnome.org/show_bug.cgi?id=745362
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 43c7d9e..3d7cf68 100644
--- a/tests/test_repository.py
+++ b/tests/test_repository.py
@@ -179,6 +179,7 @@ class Test(unittest.TestCase):
self.assertTrue(isinstance(info, GIRepository.UnionInfo))
self.assertTrue(isinstance(info.get_fields(), collections.Iterable))
self.assertTrue(isinstance(info.get_methods(), collections.Iterable))
+ self.assertTrue(isinstance(info.get_size(), int))
def test_type_info(self):
func_info = repo.find_by_name('GIMarshallingTests', 'array_fixed_out_struct')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]