コード例 #1
0
 def test_11(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = 'Performer [Enigmatic [K] Voice, Moog, Korg Vocoder], Lyrics By'
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(name='Performer', detail='Enigmatic [K] Voice, Moog, Korg Vocoder'),
         discograph.CreditRole(name='Lyrics By'),
         ]
コード例 #2
0
 def test_10(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = 'Engineer [Remix] [Assistant], Producer'
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(name='Engineer', detail='Remix, Assistant'),
         discograph.CreditRole(name='Producer'),
         ]
コード例 #3
0
 def test_6(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = 'Piano, Synthesizer [Moog], Programmed By'
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(name='Piano'),
         discograph.CreditRole(name='Synthesizer', detail='Moog'),
         discograph.CreditRole(name='Programmed By'),
         ]
コード例 #4
0
 def test_9(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = 'Composed By, Words By [elemented By], Producer'
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(name='Composed By'),
         discograph.CreditRole(name='Words By', detail='elemented By'),
         discograph.CreditRole(name='Producer'),
         ]
コード例 #5
0
 def test_2(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = (
         'Co-producer, Arranged By, Directed By, Other [Guided By], '
         'Other [Created By]'
         )
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(name='Co-producer'),
         discograph.CreditRole(name='Arranged By'),
         discograph.CreditRole(name='Directed By'),
         discograph.CreditRole(name='Other', detail='Guided By'),
         discograph.CreditRole(name='Other', detail='Created By'),
         ]
コード例 #6
0
 def test_1(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = (
         'Shekere [Xequere, Original Musician], Guiro [Original Musician], '
         'Claves [Original Musician]'
         )
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(
             name='Shekere',
             detail='Xequere, Original Musician',
             ),
         discograph.CreditRole(name='Guiro', detail='Original Musician'),
         discograph.CreditRole(name='Claves', detail='Original Musician'),
         ]
コード例 #7
0
 def test_7(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = 'Percussion [Misc.]'
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(name='Percussion', detail='Misc.'),
         ]
コード例 #8
0
 def test_5(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = 'Strings '
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(name='Strings'),
         ]
コード例 #9
0
 def test_3(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = (
         'Organ [Original Musician], '
         'Electric Piano [Rhodes, Original Musician]'
         )
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(
             name='Organ',
             detail='Original Musician',
             ),
         discograph.CreditRole(
             name='Electric Piano',
             detail='Rhodes, Original Musician',
             ),
         ]
コード例 #10
0
 def test_8(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = 'Painting [Uncredited; Detail Of <i>"The Transfiguration"</i>]'
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(
             name='Painting',
             detail='Uncredited; Detail Of <i>"The Transfiguration"</i>',
             ),
         ]
コード例 #11
0
 def test_4(self):
     element = ElementTree.fromstring('<test></test>')
     element.text = "Photography By ['hats' And 'spray' Photos By]"
     roles = discograph.CreditRole.from_element(element)
     assert roles == [
         discograph.CreditRole(
             name='Photography By',
             detail="'hats' And 'spray' Photos By",
             ),
         ]