aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typediscovery_test.py
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-26 14:57:06 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-02 17:18:15 -0300
commitac7573693042bc8f9d4d94958d89d5b15add39f2 (patch)
tree50f536b36fd3abb78d8d5e7531793acb8eb19ddb /tests/samplebinding/typediscovery_test.py
parent34c599246c7e25194bce4157e166b9bead2a1795 (diff)
Add test for bug on the current type discovery algorithm.
Diffstat (limited to 'tests/samplebinding/typediscovery_test.py')
-rwxr-xr-xtests/samplebinding/typediscovery_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/samplebinding/typediscovery_test.py b/tests/samplebinding/typediscovery_test.py
index 14fd79e6b..3c1bfdb98 100755
--- a/tests/samplebinding/typediscovery_test.py
+++ b/tests/samplebinding/typediscovery_test.py
@@ -34,9 +34,14 @@ class TypeDiscoveryTest(unittest.TestCase):
def testPureVirtualsOfImpossibleTypeDiscovery(self):
a = Derived.triggerImpossibleTypeDiscovery()
+ self.assertEqual(type(a), Abstract)
# call some pure virtual method
a.pureVirtual()
+ def testAnotherImpossibleTypeDiscovery(self):
+ a = Derived.triggerAnotherImpossibleTypeDiscovery()
+ self.assertEqual(type(a), Derived)
+
if __name__ == '__main__':
unittest.main()