home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
Inkscape
/
Inkscape-0.48.2-1-win32.exe
/
share
/
extensions
/
test
/
foldablebox.test.py
< prev
next >
Wrap
Text File
|
2011-07-08
|
551b
|
22 lines
#!/usr/bin/env python
import sys
sys.path.append('..') # this line allows to import the extension code
import unittest
from foldablebox import *
class FoldableBoxArguments(unittest.TestCase):
#def setUp(self):
def test_basic_box_elements(self):
args = [ 'minimal-blank.svg' ]
e = FoldableBox()
e.affect( args, False )
self.assertEqual( e.box.tag, 'g', 'The box group must be created.' )
self.assertEqual( len( e.box.getchildren() ), 13, 'The box group must have 13 childs.' )
if __name__ == '__main__':
unittest.main()