@@ -0,0 +1,1336 @@
+import sys%0Aimport os.path%0Asys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),%0A                                '..', 'build', 'default', 'examples'))%0Aimport foo%0Aimport unittest%0A%0A%0Aclass TestFoo(unittest.TestCase):%0A%0A    def test_add_prefix(self):%0A        obj = foo.SomeObject(%22hello %22)%0A        ln, msg = obj.add_prefix(%22gjc%22)%0A        self.assertEqual(msg, %22hello gjc%22)%0A        self.assertEqual(ln, len(%22hello gjc%22))%0A%0A    def test_foo(self):%0A        f = foo.Foo(%22hello%22)%0A        self.assertEqual(f.get_datum(), %22hello%22)%0A%0A    def test_pass_foo_by_value(self):%0A        obj = foo.SomeObject(%22%22)%0A        f = foo.Foo(%22hello%22)%0A        obj.set_foo_value(f)%0A%0A        f2 = obj.get_foo_value()%0A        self.assertEqual(f2.get_datum(), %22hello%22)%0A%0A    def test_pass_foo_by_transfer_ptr(self):%0A        obj = foo.SomeObject(%22%22)%0A        f = foo.Foo(%22hello%22)%0A        obj.set_foo_ptr(f)%0A        del f%0A        f2 = obj.get_foo_ptr()%0A        self.assertEqual(f2.get_datum(), %22hello%22)%0A        %0A    def test_pass_foo_shared_ptr(self):%0A        obj = foo.SomeObject(%22%22)%0A        f = foo.Foo(%22hello%22)%0A        obj.set_foo_shared_ptr(f)%0A        self.assertEqual(f.get_datum(), %22hello%22)%0A        f2 = obj.get_foo_shared_ptr()%0A        self.assertEqual(f2.get_datum(), %22hello%22)%0A    %0A        %0A        %0Aif __name__ == '__main__':%0A    unittest.main()%0A

add some unit tests for the built example