def test_folder_path_subdir(self): """folder_path returns the correct path for non INBOX""" path = maildir.folder_path(self.root, "INBOX.subdir") expected = os.path.join(self.root, ".INBOX.subdir", "cur") self.assertEquals(path, expected)
def test_folder_path_inbox(self): """folder_path returns the correct path for the INBOX""" path = maildir.folder_path(self.root, "INBOX") self.assertEquals(path, os.path.join(self.root, "cur"))