2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

- Fixed a inheritance bug, and added a test for it.

[SVN r18251]
This commit is contained in:
Bruno da Silva de Oliveira
2003-04-14 23:34:33 +00:00
parent ccd84c0be6
commit a15135f1c1
10 changed files with 86 additions and 11 deletions

View File

@@ -53,6 +53,14 @@ class BasicExampleTest(unittest.TestCase):
C.const_static_value = 1
self.assertRaises(AttributeError, set_const_static)
# test static function
def test_mul(result, *args):
self.assertEqual(C.mul(*args), result)
self.assertEqual(c.mul(*args), result)
test_mul(6)
test_mul(3, 1)
test_mul(16, 8, 2)
if __name__ == '__main__':
unittest.main()