def testEmptyText(self): options = OutnameTest.FakeOptions( appicon='/Applications/iTunes.app/Contents/Resources/iTunes.icns', text='') self.assertEquals('iTunes-Generic.icns', docerator.getOutname(options)) options = OutnameTest.FakeOptions( appicon='/Applications/iTunes.app/Contents/Resources/iTunes.icns', text=None) self.assertEquals('iTunes-Generic.icns', docerator.getOutname(options))
def testEmptyIcon(self): options = OutnameTest.FakeOptions(appicon=None, text='MP3') self.assertEquals('GenericDocumentIcon-MP3.icns', docerator.getOutname(options)) options = OutnameTest.FakeOptions(appicon=None, text='') self.assertEquals('GenericDocumentIcon-Generic.icns', docerator.getOutname(options)) options = OutnameTest.FakeOptions( appicon=None, text='', background='/Applications/Bla/bgicon.icns') self.assertEquals('bgicon-Generic.icns', docerator.getOutname(options))
def testEmptyText(self): options = OutnameTest.FakeOptions( appicon = '/Applications/iTunes.app/Contents/Resources/iTunes.icns', text='') self.assertEquals('iTunes-Generic.icns', docerator.getOutname(options)) options = OutnameTest.FakeOptions( appicon = '/Applications/iTunes.app/Contents/Resources/iTunes.icns', text=None) self.assertEquals('iTunes-Generic.icns', docerator.getOutname(options))
def testEmptyIcon(self): options = OutnameTest.FakeOptions(appicon=None, text='MP3') self.assertEquals('GenericDocumentIcon-MP3.icns', docerator.getOutname(options)) options = OutnameTest.FakeOptions(appicon=None, text='') self.assertEquals('GenericDocumentIcon-Generic.icns', docerator.getOutname(options)) options = OutnameTest.FakeOptions(appicon=None, text='', background='/Applications/Bla/bgicon.icns') self.assertEquals('bgicon-Generic.icns', docerator.getOutname(options))
def testTextList(self): options = OutnameTest.FakeOptions( appicon='/Applications/iTunes.app/Contents/Resources/iTunes.icns', text='PYTHON,PY') self.assertEquals('iTunes-PYTHON.icns', docerator.getOutname(options))
def testBasic(self): options = OutnameTest.FakeOptions( appicon='/Applications/iTunes.app/Contents/Resources/iTunes.icns', text='MP3') self.assertEquals('iTunes-MP3.icns', docerator.getOutname(options))
def testTextList(self): options = OutnameTest.FakeOptions( appicon = '/Applications/iTunes.app/Contents/Resources/iTunes.icns', text='PYTHON,PY') self.assertEquals('iTunes-PYTHON.icns', docerator.getOutname(options))
def testBasic(self): options = OutnameTest.FakeOptions( appicon = '/Applications/iTunes.app/Contents/Resources/iTunes.icns', text='MP3') self.assertEquals('iTunes-MP3.icns', docerator.getOutname(options))