def get_album(self, album_id: str) -> DatabaseMedia: query = "SELECT {0} FROM Albums WHERE RemoteId = ?;".format( GoogleAlbumsRow.columns ) self.cur.execute(query, (album_id,)) res = self.cur.fetchone() return GoogleAlbumsRow(res).to_media()
def test_google_albums_media(self): m = GoogleAlbumMedia("") g = GoogleAlbumsRow(None) g.from_media(m)