<s> """<STR_LIT>""" <EOL> import StringIO <EOL> from cadquery import * <EOL> from cadquery import exporters <EOL> from cadquery import importers <EOL> from tests import BaseTest <EOL> import sys <EOL> if sys . platform . startswith ( "<STR_LIT>" ) : <EOL> OUTDIR = "<STR_LIT>" <EOL> else : <EOL> OUTDIR = "<STR_LIT>" <EOL> class TestImporters ( BaseTest ) : <EOL> def importBox ( self , importType , fileName ) : <EOL> """<STR_LIT>""" <EOL> if importType == importers . ImportTypes . STEP : <EOL> shape = Workplane ( "<STR_LIT>" ) . box ( <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> ) . val ( ) <EOL> shape . exportStep ( fileName ) <EOL> importedShape = importers . importShape ( importType , fileName ) <EOL> self . assertTrue ( importedShape . val ( ) . ShapeType ( ) == "<STR_LIT>" ) <EOL> self . assertTrue ( importedShape . faces ( "<STR_LIT>" ) . size ( ) == <NUM_LIT:1> and importedShape . faces ( "<STR_LIT>" ) . vertices ( ) . size ( ) == <NUM_LIT:4> ) <EOL> self . assertTrue ( importedShape . faces ( "<STR_LIT>" ) . size ( ) == <NUM_LIT:1> and importedShape . faces ( "<STR_LIT>" ) . vertices ( ) . size ( ) == <NUM_LIT:4> ) <EOL> self . assertTrue ( importedShape . faces ( "<STR_LIT>" ) . size ( ) == <NUM_LIT:1> and importedShape . faces ( "<STR_LIT>" ) . vertices ( ) . size ( ) == <NUM_LIT:4> ) <EOL> def testSTEP ( self ) : <EOL> """<STR_LIT>""" <EOL> self . importBox ( importers . ImportTypes . STEP , OUTDIR + "<STR_LIT>" ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import unittest <EOL> unittest . main ( ) </s>
