<s> import unittest <EOL> import numpy <EOL> from pkg_resources import parse_version <EOL> from openmdao . util . testutil import assert_rel_error <EOL> from openmdao . examples . bar3simulation . bar3_optimization import Bar3Optimization <EOL> from openmdao . examples . bar3simulation . bar3 import runbar3truss <EOL> class Bar3OptimizationTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> self . model = Bar3Optimization ( ) <EOL> def tearDown ( self ) : <EOL> self . model . pre_delete ( ) <EOL> self . model = None <EOL> def test_bar3_docstring ( self ) : <EOL> if parse_version ( numpy . __version__ ) < parse_version ( '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> else : <EOL> """<STR_LIT>""" <EOL> def test_bar3 ( self ) : <EOL> self . model . run ( ) <EOL> assert_rel_error ( self , self . model . bar3_truss . weight , <NUM_LIT> , <NUM_LIT> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> import nose , sys <EOL> sys . argv . append ( '<STR_LIT>' ) <EOL> sys . argv . append ( '<STR_LIT>' ) <EOL> nose . runmodule ( ) </s>
