1 #!/usr/bin/env python
3 import sys
4 sys.path.append('..') # this line allows to import the extension code
6 import unittest
7 from foldablebox import *
9 class FoldableBoxArguments(unittest.TestCase):
11 #def setUp(self):
13 def test_basic_box_elements(self):
14 args = [ 'minimal-blank.svg' ]
15 e = FoldableBox()
16 e.affect( args, False )
17 self.assertEqual( e.box.tag, 'g', 'The box group must be created.' )
18 self.assertEqual( len( e.box.getchildren() ), 13, 'The box group must have 13 childs.' )
20 if __name__ == '__main__':
21 unittest.main()