Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Added a couple of more assertions to the test of read_annotations_file()

This commit is contained in:
Einar Ryeng 2007-02-15 22:54:08 +00:00
parent e6cf8f765a
commit 953662e1fb
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ class AnnotationsTest(unittest.TestCase):
ann = annotations.read_annotations_file('../data/annotations.fann') ann = annotations.read_annotations_file('../data/annotations.fann')
assert ann != None assert ann != None
assert ann == annotations.get_dim_handler('dim1') 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__': if __name__ == '__main__':
unittest.main() unittest.main()