* annotations.py: Annotation class for two-way annotations. Does only support
exactly two dimensions.
This commit is contained in:
		
							
								
								
									
										19
									
								
								test/system/annotationtest.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								test/system/annotationtest.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
|  | ||||
| import unittest | ||||
| import sys | ||||
| sys.path.append('../../system') | ||||
| from annotations import * | ||||
|  | ||||
| class AnnotationTest(unittest.TestCase): | ||||
|  | ||||
|     def setUp(self): | ||||
|         pass | ||||
|  | ||||
|     def testCreation(self): | ||||
|         a = Annotations('x', 'y') | ||||
|         assert a.has_dimension('x')         | ||||
|         assert a.has_dimension('y')         | ||||
|         assert not a.has_dimension('z')         | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
		Reference in New Issue
	
	Block a user