Ejemplo n.º 1
0
    if release.releaseGroup:
        print
        print "Release Group:"
        print "  Id        :", release.releaseGroup.id
        print "  Title     :", release.releaseGroup.title
        print "  Type      :", release.releaseGroup.type

    # Release events are the dates and times when a release took place.
    # We also have the catalog numbers and barcodes for some releases.
    #
    if len(release.releaseEvents) > 0:
        print
        print "Released (earliest: %s):" % release.getEarliestReleaseDate()

    for event in release.releaseEvents:
        print "  %s %s" % (u.getCountryName(event.country), event.date),

        if event.catalogNumber:
            print '#' + event.catalogNumber,

        if event.barcode:
            print 'EAN=' + event.barcode,

        if event.label:
            print '(' + event.label.name + ')',

        print


    if len(release.discs) > 0:
        print
Ejemplo n.º 2
0
	def testGetCountryName(self):
		self.assertEquals(u.getCountryName('DE'), 'Germany')
		self.assertEquals(u.getCountryName('FR'), 'France')