Beispiel #1
0
 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))
Beispiel #2
0
 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))
Beispiel #3
0
 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))
Beispiel #4
0
 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))
Beispiel #5
0
 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))
Beispiel #6
0
 def testBasic(self):
     options = OutnameTest.FakeOptions(
         appicon='/Applications/iTunes.app/Contents/Resources/iTunes.icns',
         text='MP3')
     self.assertEquals('iTunes-MP3.icns', docerator.getOutname(options))
Beispiel #7
0
 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))
Beispiel #8
0
 def testBasic(self):
   options = OutnameTest.FakeOptions(
       appicon = '/Applications/iTunes.app/Contents/Resources/iTunes.icns',
       text='MP3')
   self.assertEquals('iTunes-MP3.icns', docerator.getOutname(options))