Added a couple of more assertions to the test of read_annotations_file()
This commit is contained in:
parent
e6cf8f765a
commit
953662e1fb
|
@ -57,6 +57,10 @@ class AnnotationsTest(unittest.TestCase):
|
|||
ann = annotations.read_annotations_file('../data/annotations.fann')
|
||||
assert ann != None
|
||||
assert ann == annotations.get_dim_handler('dim1')
|
||||
assert 'Ann1' in ann.get_annotation_names()
|
||||
assert 'Ann2' in ann.get_annotation_names()
|
||||
assert not ('Ann3' in ann.get_annotation_names())
|
||||
assert annotations.get_dim_annotations('dim1', 'Ann1', ['id1']) == ['11']
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Reference in New Issue