Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Don't test for icons if the main path is not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrusdaboo committed Nov 13, 2008
1 parent 8fd3d4d commit c7b8edc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions twistedcaldav/test/test_mail.py
Expand Up @@ -33,10 +33,11 @@ def setUp(self):
def test_iconPath(self):
iconPath = self.handler.getIconPath({'day':'1', 'month':'1'}, False, language='en')
iconDir = "/usr/share/caldavd/share/date_icons"
if os.path.exists("%s/JAN/01.png" % (iconDir,)):
self.assertEquals(iconPath, "%s/JAN/01.png" % (iconDir,))
else:
self.assertEquals(iconPath, "%s/01/01.png" % (iconDir,))
if os.path.exists(iconDir):
if os.path.exists("%s/JAN/01.png" % (iconDir,)):
self.assertEquals(iconPath, "%s/JAN/01.png" % (iconDir,))
else:
self.assertEquals(iconPath, "%s/01/01.png" % (iconDir,))

def test_checkDSNFailure(self):

Expand Down

0 comments on commit c7b8edc

Please sign in to comment.