1 |
gross |
294 |
# $Id:$ |
2 |
|
|
|
3 |
|
|
# |
4 |
|
|
# COPYRIGHT ACcESS 2004 - All Rights Reserved |
5 |
|
|
# |
6 |
|
|
# This software is the property of ACcESS. No part of this code |
7 |
|
|
# may be copied in any form or by any means without the expressed written |
8 |
|
|
# consent of ACcESS. Copying, use or modification of this software |
9 |
|
|
# by any unauthorised person is illegal unless that |
10 |
|
|
# person has a software license agreement with ACcESS. |
11 |
|
|
# |
12 |
|
|
|
13 |
|
|
""" |
14 |
|
|
runs the test_symbol test for the symbols.py module |
15 |
|
|
|
16 |
|
|
@remark: |
17 |
|
|
@var __author__: name of author |
18 |
|
|
@var __licence__: licence agreement |
19 |
|
|
@var __url__: url entry point on documentation |
20 |
|
|
@var __version__: version |
21 |
|
|
@var __date__: date of the version |
22 |
|
|
""" |
23 |
|
|
|
24 |
|
|
__author__="Lutz Gross, l.gross@uq.edu.au" |
25 |
|
|
__licence__="contact: esys@access.uq.edu.au" |
26 |
|
|
__url__="http://www.iservo.edu.au/esys/escript" |
27 |
|
|
__version__="$Revision$" |
28 |
|
|
__date__="$Date$" |
29 |
|
|
|
30 |
gross |
296 |
|
31 |
|
|
from esys.escript.test_symbols import Test_symbols |
32 |
|
|
from esys.escript import FunctionOnBoundary |
33 |
|
|
from esys.finley import Rectangle |
34 |
gross |
294 |
import unittest |
35 |
gross |
296 |
import sys |
36 |
gross |
294 |
|
37 |
gross |
296 |
class Test_UtilOnBruce(Test_symbols): |
38 |
|
|
def setUp(self): |
39 |
|
|
self.__dom =Rectangle(10,10,2) |
40 |
|
|
self.functionspace = FunctionOnBoundary(self.__dom) |
41 |
|
|
|
42 |
|
|
if __name__ == '__main__': |
43 |
|
|
suite = unittest.TestSuite() |
44 |
|
|
suite.addTest(unittest.makeSuite(Test_UtilOnBruce)) |
45 |
|
|
s=unittest.TextTestRunner(verbosity=2).run(suite) |
46 |
|
|
if s.wasSuccessful(): |
47 |
|
|
sys.exit(0) |
48 |
|
|
else: |
49 |
|
|
sys.exit(1) |
50 |
|
|
|