Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/pyste/tests/opaqueUT.py @ 45

Last change on this file since 45 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 652 bytes
Line 
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 _opaque import *
7
8class OpaqueTest(unittest.TestCase):
9
10    def testIt(self):
11
12        c = new_C()
13        self.assertEqual(get(c), 10)
14        c = new_C_zero()
15        self.assertEqual(get(c), 0) 
16        a = A()
17        d = a.new_handle()
18        self.assertEqual(a.get(d), 3.0)
19        self.assertEqual(a.f(), 0)
20        self.assertEqual(a.f(3), 3)
21
22
23if __name__ == '__main__':
24    unittest.main()
Note: See TracBrowser for help on using the repository browser.