| 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) |
|---|
| 5 | import unittest |
|---|
| 6 | from _add_test import * |
|---|
| 7 | |
|---|
| 8 | class AddMethodTest(unittest.TestCase): |
|---|
| 9 | |
|---|
| 10 | def testIt(self): |
|---|
| 11 | c = C() |
|---|
| 12 | c.x = 10 |
|---|
| 13 | self.assertEqual(c.get_x(), 10) |
|---|
| 14 | |
|---|
| 15 | if __name__ == '__main__': |
|---|
| 16 | unittest.main() |
|---|
Note: See
TracBrowser
for help on using the repository browser.