Exemple #1
0
def profiles_search_test():
  global failed
  global passed
  api = API("nbsmobile");
  resp = json.loads(api.profilesSearch("http://www.myspace.com/kanyewest"))
  if resp["356"]["music_brainz_id"] == "164f0d73-1234-4e2c-8743-d77bf2191051":
    passed += 1
  else:
    failed += ["profiles_search_test( )"]
Exemple #2
0
def profiles_search_test():
    global failed
    global passed
    api = API("nbsmobile", "", ".xml")
    resp = xml.dom.minidom.parseString(api.profilesSearch("http://www.myspace.com/kanyewest"))
    music_id = resp.getElementsByTagName("music_brainz_id")[0].childNodes[0].data
    if music_id == "164f0d73-1234-4e2c-8743-d77bf2191051":
        passed += 1
    else:
        failed.append("profile_search_test( )")
def profiles_search_test():
  global failed
  global passed
  api = API("nbsmobile","", ".xml")
  resp = xml.dom.minidom.parseString(api.profilesSearch("http://www.myspace.com/kanyewest"))
  music_id = resp.getElementsByTagName("music_brainz_id")[0].childNodes[0].data
  if(music_id == "164f0d73-1234-4e2c-8743-d77bf2191051"):
    passed += 1
  else:
    failed.append("profile_search_test( )")
def profiles_search_test():
    global failed
    global passed
    api = API("nbsmobile")
    resp = json.loads(api.profilesSearch("http://www.myspace.com/kanyewest"))
    if resp["356"][
            "music_brainz_id"] == "164f0d73-1234-4e2c-8743-d77bf2191051":
        passed += 1
    else:
        failed += ["profiles_search_test( )"]