1# Copyright Bruno da Silva de Oliveira 2003. Use, modification and 2# distribution is subject to the Boost Software License, Version 1.0. 3# (See accompanying file LICENSE_1_0.txt or copy at 4# http://www.boost.org/LICENSE_1_0.txt) 5import unittest 6from _nested import * 7 8class NestedTest(unittest.TestCase): 9 10 def testIt(self): 11 self.assertEqual(Root.staticXValue, 10) 12 self.assertEqual(Root.Y.staticYValue, 20) 13 z = Root.Y.Z() 14 z.valueZ = 3 15 self.assertEqual(z.valueZ, 3) 16 17 18if __name__ == '__main__': 19 unittest.main() 20