Exemplo n.º 1
0
def artist_view_test():
  global failed
  global passed
  api = API("nbsmobile")
  resp = json.loads(api.artistView("356"))
  if resp["music_brainz_id"] == "164f0d73-1234-4e2c-8743-d77bf2191051":
    passed += 1
  else:
    failed += ["artist_view_test_( )"]
Exemplo n.º 2
0
def artist_view_test():
    global failed
    global passed
    api = API("nbsmobile")
    resp = json.loads(api.artistView("356"))
    if resp["music_brainz_id"] == "164f0d73-1234-4e2c-8743-d77bf2191051":
        passed += 1
    else:
        failed += ["artist_view_test_( )"]
Exemplo n.º 3
0
def artist_view_test():
    global failed
    global passed
    api = API("nbsmobile", "", ".xml")
    resp = xml.dom.minidom.parseString(api.artistView("356"))
    music_id = resp.getElementsByTagName("music_brainz_id")[0].childNodes[0].data
    if music_id == "164f0d73-1234-4e2c-8743-d77bf2191051":
        passed += 1
    else:
        failed.append("artist_view_test( )")
Exemplo n.º 4
0
def artist_view_test():
  global failed
  global passed
  api = API("nbsmobile", "", ".xml")
  resp = xml.dom.minidom.parseString(api.artistView("356"))
  music_id = resp.getElementsByTagName("music_brainz_id")[0].childNodes[0].data
  if(music_id == "164f0d73-1234-4e2c-8743-d77bf2191051"):
    passed += 1
  else:
    failed.append("artist_view_test( )")