<s> __author__ = '<STR_LIT>' <EOL> import sys <EOL> import os <EOL> if ( sys . version_info < ( <NUM_LIT:2> , <NUM_LIT:7> , <NUM_LIT:0> ) ) : <EOL> import unittest2 as unittest <EOL> else : <EOL> import unittest <EOL> from pypet import Trajectory <EOL> from pypet . tests . testutils . ioutils import run_suite , parse_args <EOL> import pypet <EOL> import platform <EOL> class LoadOldTrajectoryTest ( unittest . TestCase ) : <EOL> tags = '<STR_LIT>' , '<STR_LIT>' <EOL> @ unittest . skipIf ( not sys . version_info < ( <NUM_LIT:3> , <NUM_LIT:0> , <NUM_LIT:0> ) , '<STR_LIT>' ) <EOL> def test_backwards_compatibility ( self ) : <EOL> old_pypet_traj = Trajectory ( ) <EOL> module_path , init_file = os . path . split ( pypet . __file__ ) <EOL> filename = os . path . join ( module_path , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> old_pypet_traj . f_load ( index = - <NUM_LIT:1> , load_data = <NUM_LIT:2> , force = True , filename = filename ) <EOL> self . assertTrue ( old_pypet_traj . v_version == '<STR_LIT>' ) <EOL> self . assertTrue ( old_pypet_traj . par . x == <NUM_LIT:0> ) <EOL> self . assertTrue ( len ( old_pypet_traj ) == <NUM_LIT:9> ) <EOL> self . assertTrue ( old_pypet_traj . res . runs . r_4 . z == <NUM_LIT:12> ) <EOL> nexplored = len ( old_pypet_traj . _explored_parameters ) <EOL> self . assertGreater ( nexplored , <NUM_LIT:0> ) <EOL> for param in old_pypet_traj . f_get_explored_parameters ( ) : <EOL> self . assertTrue ( old_pypet_traj . f_contains ( param ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> opt_args = parse_args ( ) <EOL> run_suite ( ** opt_args ) </s>
