diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-26 14:57:06 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-02 17:18:15 -0300 |
commit | ac7573693042bc8f9d4d94958d89d5b15add39f2 (patch) | |
tree | 50f536b36fd3abb78d8d5e7531793acb8eb19ddb /tests/samplebinding/typediscovery_test.py | |
parent | 34c599246c7e25194bce4157e166b9bead2a1795 (diff) |
Add test for bug on the current type discovery algorithm.
Diffstat (limited to 'tests/samplebinding/typediscovery_test.py')
-rwxr-xr-x | tests/samplebinding/typediscovery_test.py | 5 |
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() |