20 lines
410 B
Python
20 lines
410 B
Python
|
|
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()
|