* annotations.py: Annotation class for two-way annotations. Does only support

exactly two dimensions.
This commit is contained in:
2006-04-16 22:06:29 +00:00
parent 5853216df4
commit eb45c125aa
3 changed files with 53 additions and 1 deletions

View 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()