<s> '''<STR_LIT>''' <EOL> from cortical . classifyApi import ClassifyApi <EOL> import testConfiguration <EOL> import unittest <EOL> filterInput1 = """<STR_LIT>""" <EOL> class TestClassifyApi ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . classifyApi = ClassifyApi ( testConfiguration . client ) <EOL> def testCreateCategoryFilter ( self ) : <EOL> filterName = "<STR_LIT>" <EOL> filter1 = self . classifyApi . createCategoryFilter ( testConfiguration . RETINA_NAME , filterName , filterInput1 ) <EOL> self . assertGreater ( len ( filter1 . positions ) , <NUM_LIT:50> ) <EOL> self . assertEqual ( filter1 . categoryName , filterName ) <EOL> def testErrors ( self ) : <EOL> expectedException = False <EOL> try : <EOL> self . classifyApi . createCategoryFilter ( testConfiguration . RETINA_NAME , None , filterInput1 ) <EOL> except Exception : <EOL> expectedException = True <EOL> self . assertTrue ( expectedException ) <EOL> expectedException = False <EOL> try : <EOL> self . classifyApi . createCategoryFilter ( testConfiguration . RETINA_NAME , "<STR_LIT>" , <EOL> '<STR_LIT>' ) <EOL> except Exception , e : <EOL> expectedException = True <EOL> self . assertTrue ( expectedException ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
