/usr/share/pyshared/neo/test/test_segment.py is in python-neo 0.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | """
Tests of the Segment class
"""
try:
import unittest2 as unittest
except ImportError:
import unittest
from neo.core.segment import Segment
class TestSegment(unittest.TestCase):
def test_init(self):
seg = Segment(name='a segment', index=3)
self.assertEqual(seg.name, 'a segment')
self.assertEqual(seg.file_origin, None)
self.assertEqual(seg.index, 3)
|