Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/python/pyste/tests/code_testUT.py @ 12

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

added boost

File size: 491 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 _code_test import *
7
8class CodeTest(unittest.TestCase):
9
10    def testIt(self):
11        a = A()
12        a.x = 12
13        self.assertEqual(get(a), 12)
14        self.assertEqual(foo(), "Hello!")
15
16
17if __name__ == '__main__':
18    unittest.main()
Note: See TracBrowser for help on using the repository browser.