示例#1
0
 def test_is_segy_file(self):
     """
     Tests the _is_segy method.
     """
     # Test all files in the test directory.
     for file in self.files.keys():
         file = os.path.join(self.path, file)
         self.assertEqual(_is_segy(file), True)
     # Also check all the other files in the test directory and they should
     # not work. Just check certain files to ensure reproducibility.
     files = ['test_core.py', 'test_segy.py', '__init__.py']
     for file in files:
         file = os.path.join(self.dir, file)
         self.assertEqual(_is_segy(file), False)
示例#2
0
 def test_is_segyFile(self):
     """
     Tests the _is_segy method.
     """
     # Test all files in the test directory.
     for file in self.files.keys():
         file = os.path.join(self.path, file)
         self.assertEqual(_is_segy(file), True)
     # Also check all the other files in the test directory and they should
     # not work. Just check certain files to ensure reproducibility.
     files = ['test_core.py', 'test_segy.py', '__init__.py']
     for file in files:
         file = os.path.join(self.dir, file)
         self.assertEqual(_is_segy(file), False)