1 |
# $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 |
from esys.escript.test_symbols import Test_symbols |
31 |
from esys.escript import ContinuousFunction |
32 |
from esys.bruce import Rectangle |
33 |
import unittest |
34 |
import sys |
35 |
|
36 |
class Test_UtilOnBruce(Test_symbols): |
37 |
def setUp(self): |
38 |
self.__dom =Rectangle(10,10,2) |
39 |
self.functionspace = ContinuousFunction(self.__dom) |
40 |
|
41 |
if __name__ == '__main__': |
42 |
suite = unittest.TestSuite() |
43 |
suite.addTest(unittest.makeSuite(Test_UtilOnBruce)) |
44 |
s=unittest.TextTestRunner(verbosity=2).run(suite) |
45 |
if s.wasSuccessful(): |
46 |
sys.exit(0) |
47 |
else: |
48 |
sys.exit(1) |