[pybank] Add test for subclasses
- From: Johan Dahlin <johan src gnome org>
- To: svn-commits-list gnome org
- Subject: [pybank] Add test for subclasses
- Date: Tue, 2 Jun 2009 10:44:32 -0400 (EDT)
commit 3aed58caa2717dad25b4329fca3ef207d1c947c0
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date: Fri May 8 17:36:16 2009 +0200
Add test for subclasses
---
everything_unittest.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/everything_unittest.py b/everything_unittest.py
index e083c62..bfdd9dd 100644
--- a/everything_unittest.py
+++ b/everything_unittest.py
@@ -264,5 +264,11 @@ class TestGIEverything(unittest.TestCase):
self.assertRaises(NotImplementedError, Everything.TestInterface)
self.assertEquals(Everything.TestInterface.__gtype__.name, 'EverythingTestInterface')
+ def testSubclass(self):
+ class TestSubclass(Everything.TestObj):
+ def __init__(self):
+ Everything.TestObj.__init__(self, 'foo')
+ s = TestSubclass()
+
if __name__ == '__main__':
unittest.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]