def test_process_no_clear(self):
     lang = Translations()
     lib = TargetSearch(lang, InfoRam(lang), DataRam(lang), False, False)
     lib.set_target_dir(self._get_test_dir()).set_remote_file_name(
         'what el$e can be found').process()
     assert 'what el$e can be found' == lib.get_final_target_name()
     assert self._get_test_dir(
     ) + 'what el$e can be found' + TargetSearch.FILE_DRIVER_SUFF == lib.get_driver_location(
     )
     assert self._get_test_dir(
     ) + 'what el$e can be found' + TargetSearch.FILE_UPLOAD_SUFF == lib.get_temporary_target_location(
     )
 def test_process_name_lookup(self):
     lang = Translations()
     data_ram = DataRam(lang)
     data_ram.add_part(self._get_test_dir() + 'dummyFile.tst',
                       'asdfghjklqwertzuiopyxcvbnm')
     data_ram.add_part(self._get_test_dir() + 'dummyFile.0.tst',
                       'asdfghjklqwertzuiopyxcvbnm')
     data_ram.add_part(self._get_test_dir() + 'dummyFile.1.tst',
                       'asdfghjklqwertzuiopyxcvbnm')
     data_ram.add_part(self._get_test_dir() + 'dummyFile.2.tst',
                       'asdfghjklqwertzuiopyxcvbnm')
     lib = TargetSearch(lang, InfoRam(lang), data_ram, False, False)
     lib.set_target_dir(self._get_test_dir()).set_remote_file_name(
         'dummyFile.tst').process()
     assert self._get_test_dir(
     ) + 'dummyFile.3.tst' + TargetSearch.FILE_UPLOAD_SUFF == lib.get_temporary_target_location(
     )