Ejemplo n.º 1
0
 def test_is_nlloc_hyp(self):
     # test positive
     filename = get_example_file("nlloc_custom.hyp")
     self.assertEqual(is_nlloc_hyp(filename), True)
     # test some negatives
     for filenames in ["nlloc_custom.qml", "nlloc.obs", "gaps.mseed",
                       "BW_RJOB.xml", "QFILE-TEST-ASC.ASC", "LMOW.BHE.SAC"]:
         filename = get_example_file("nlloc_custom.qml")
         self.assertEqual(is_nlloc_hyp(filename), False)
Ejemplo n.º 2
0
 def test_is_nlloc_hyp(self):
     # test positive
     filename = get_example_file("nlloc_custom.hyp")
     self.assertEqual(is_nlloc_hyp(filename), True)
     # test some negatives
     for filenames in ["nlloc_custom.qml", "nlloc.obs", "gaps.mseed",
                       "BW_RJOB.xml", "QFILE-TEST-ASC.ASC", "LMOW.BHE.SAC"]:
         filename = get_example_file("nlloc_custom.qml")
         self.assertEqual(is_nlloc_hyp(filename), False)