Exemple #1
0
    def testiPhoto6(self):
        self.albumName = 'Livre Yosemite'
        self.libraryPath = join('data', 'fake_iphoto_library')
        self.xmlFilename = 'AlbumData_fake_iphoto-6.0.5.xml'

        parser = AlbumDataParser(self.libraryPath, self.xmlFilename)
        self.xmlData = parser.parse()

        main(self.albumName, self.topDir, self.xmlData)
    def _testAlbumNames(self, xml):
        ''' TODO: try with album with non-ascii chars '''
        parser = AlbumDataParser(self.libraryPath, xml)
        xmlData = parser.parse()
        albumList = xmlData.getAlbumList()

        for album in self.albums.splitlines():
            album = album.strip()
            if album:
                self.assert_(album in albumList)
Exemple #3
0
    def testiPhoto2(self):

        self.albumName = 'Youpi gallery'
        self.libraryPath = join('data', 'fake_iphoto_library')
        self.xmlFilename = 'AlbumData_fake_iphoto-2.xml'

        parser = AlbumDataParser(self.libraryPath, self.xmlFilename)
        self.xmlData = parser.parse()

        albumList = self.xmlData.getAlbumList()
        self.assertEquals(albumList[0], 'Youpi gallery')
        
        main(self.albumName, self.topDir, self.xmlData)