From 2452be71838a0ba60ec899c6f4ff8b52325adffb Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Tue, 5 Jul 2011 15:38:53 -0300 Subject: Created unit test for bug #886. This test check if a enum inside of a namespace which is not exported to python, work proper. Reviewer: Marcelo Lira Luciano Wolf --- tests/samplebinding/namespace_test.py | 5 +++++ tests/samplebinding/typesystem_sample.xml | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'tests/samplebinding') diff --git a/tests/samplebinding/namespace_test.py b/tests/samplebinding/namespace_test.py index 20637cae7..703333e0f 100644 --- a/tests/samplebinding/namespace_test.py +++ b/tests/samplebinding/namespace_test.py @@ -29,6 +29,11 @@ import unittest from sample import * +class TestEnumUnderNamespace(unittest.TestCase): + def testInvisibleNamespace(self): + o1 = EnumOnNamespace.Option1 + self.assertEquals(o1, 1) + class TestClassesUnderNamespace(unittest.TestCase): def testIt(self): c1 = SampleNamespace.SomeClass() diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index d99ee0fbc..d4cca8842 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -91,6 +91,10 @@ + + + + -- cgit v1.2.3