@@ -360,20 +360,18 @@ def test_equality(self):
360360 ns0 .sampFreqUsed = 400
361361 self .assertNotEqual (ns0 , ns1 )
362362
363+ class TestNlxHeader (TestNeuralynxRawIO , unittest .TestCase ):
364+ def test_no_date_time (self ):
365+ filename = self .get_local_path ("neuralynx/NoDateHeader/NoDateHeader.nev" )
363366
364- # I comment this now and will put it back when files will be in gin.g-node
365- # class TestNlxHeader(TestNeuralynxRawIO, unittest.TestCase):
366- # def test_no_date_time(self):
367- # filename = self.get_local_path("neuralynx/NoDateHeader/NoDateHeader.nev")
368-
369- # with self.assertRaises(IOError):
370- # hdr = NlxHeader(filename)
367+ with self .assertRaises (IOError ):
368+ hdr = NlxHeader (filename )
371369
372- # hdr = NlxHeader(filename, props_only=True)
370+ hdr = NlxHeader (filename , props_only = True )
373371
374- # self.assertEqual(len(hdr), 11)
375- # self.assertEqual(hdr['ApplicationName'], 'Pegasus')
376- # self.assertEqual(hdr['FileType'], 'Event')
372+ self .assertEqual (len (hdr ), 11 ) # 9 properties plus channel_ids and channel_names
373+ self .assertEqual (hdr ['ApplicationName' ], 'Pegasus' )
374+ self .assertEqual (hdr ['FileType' ], 'Event' )
377375
378376if __name__ == "__main__" :
379377 unittest .main ()
0 commit comments