Ejemplo n.º 1
0
    def test_init(self):
        aS = AnnotationSeries('test_aS',
                              'a hypothetical source',
                              timestamps=list())
        self.assertEqual(aS.name, 'test_aS')
        self.assertEqual(aS.source, 'a hypothetical source')

        aS.add_annotation(2.0, 'comment')
Ejemplo n.º 2
0
 def test_init(self):
     aS = AnnotationSeries('test_aS', data=[1, 2, 3], timestamps=list())
     self.assertEqual(aS.name, 'test_aS')
     aS.add_annotation(2.0, 'comment')