Beispiel #1
0
def profiles_artist_test():
  global failed
  global passed
  api = API("nbsmobile")
  resp = json.loads(api.profilesArtist("356"))
  if resp["388"]["name"] == "MySpace":
    passed += 1
  else:
    failed += ["profiles_artist_test( )"]
def profiles_artist_test():
    global failed
    global passed
    api = API("nbsmobile")
    resp = json.loads(api.profilesArtist("356"))
    if resp["388"]["name"] == "MySpace":
        passed += 1
    else:
        failed += ["profiles_artist_test( )"]
Beispiel #3
0
def profiles_artist_test():
    global failed
    global passed
    api = API("nbsmobile", "", ".xml")
    resp = xml.dom.minidom.parseString(api.profilesArtist("356"))
    service = resp.getElementsByTagName("service")[9].childNodes[0].data
    if service == "MySpace":
        passed += 1
    else:
        failed.append("profiles_artist_test()")
def profiles_artist_test():
  global failed
  global passed
  api = API("nbsmobile", "", ".xml")
  resp = xml.dom.minidom.parseString(api.profilesArtist("356"))
  service = resp.getElementsByTagName("service")[9].childNodes[0].data
  if(service == "MySpace"):
    passed += 1
  else:
    failed.append("profiles_artist_test()")