From 2824b0cbb66e715490e1ef13250bd675d87b32d9 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 2 Jun 2010 20:53:17 +0000 Subject: rel-2.0.0 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/tags/rel-2.0.0@12089 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- .../test-suite/python/director_string_runme.py | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 trunk/Examples/test-suite/python/director_string_runme.py (limited to 'trunk/Examples/test-suite/python/director_string_runme.py') diff --git a/trunk/Examples/test-suite/python/director_string_runme.py b/trunk/Examples/test-suite/python/director_string_runme.py new file mode 100644 index 000000000..f2db416ca --- /dev/null +++ b/trunk/Examples/test-suite/python/director_string_runme.py @@ -0,0 +1,29 @@ +from director_string import * + +class B(A): + def __init__(self,string): + A.__init__(self,string) + + def get_first(self): + return A.get_first(self) + " world!" + + def process_text(self, string): + A.process_text(self, string) + self.smem = "hello" + + + +b = B("hello") + +b.get(0) +if b.get_first() != "hello world!": + print b.get_first() + raise RuntimeError + + +b.call_process_func() + +if b.smem != "hello": + print smem + raise RuntimeError + -- cgit v1.2.1