3
MAP Client, a program to generate detailed musculoskeletal models for OpenSim.
4
Copyright (C) 2012 University of Auckland
6
This file is part of MAP Client. (http://launchpad.net/mapclient)
8
MAP Client is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
13
MAP Client is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with MAP Client. If not, see <http://www.gnu.org/licenses/>..
24
from mapclient.exceptions import ClientRuntimeError
27
class ExceptionTestCase(unittest.TestCase):
29
def test_client_runtime_error(self):
30
error = ClientRuntimeError('title', 'desc')
31
self.assertEqual(error.title, 'title')
32
self.assertEqual(error.description, 'desc')
36
tests = unittest.TestSuite()
37
tests.addTests(unittest.TestLoader().loadTestsFromTestCase(ExceptionTestCase))
40
if __name__ == '__main__':
41
unittest.TextTestRunner().run(suite())