Beispiel #1
0
def profiles_add_test():
    global failed
    global passed
    api = API("nbsmobile", "ad644d582c7dcf7dc29479ff2d4df1ef", ".xml")
    profiles = ["http://www.myspace.com/longmiles"]
    resp = xml.dom.minidom.parseString(api.profilesAdd("324157", profiles))
    name = resp.getElementsByTagName("name")[0].childNodes[0].data
    if name == "Long Miles":
        passed += 1
    else:
        failed.append("profiles_add_test( )")
def profiles_add_test():
  global failed
  global passed
  api = API("nbsmobile", "ad644d582c7dcf7dc29479ff2d4df1ef", ".xml")
  profiles = ["http://www.myspace.com/longmiles"]
  resp = xml.dom.minidom.parseString(api.profilesAdd("324157", profiles))
  name = resp.getElementsByTagName("name")[0].childNodes[0].data
  if(name == "Long Miles"):
    passed += 1
  else:
    failed.append("profiles_add_test( )")
Beispiel #3
0
def profiles_add_test():
  global failed
  global passed
  api = API("nbsmobile", "ad644d582c7dcf7dc29479ff2d4df1ef")
  name = "Long Miles"
  profiles = ["http://www.myspace.com/longmiles"]
  resp = json.loads(api.profilesAdd("324157", profiles))
  if resp['name'] == "Long Miles":
    passed += 1
  else:
    failed += ["artist_add_test( )"]
def profiles_add_test():
    global failed
    global passed
    api = API("nbsmobile", "ad644d582c7dcf7dc29479ff2d4df1ef")
    name = "Long Miles"
    profiles = ["http://www.myspace.com/longmiles"]
    resp = json.loads(api.profilesAdd("324157", profiles))
    if resp['name'] == "Long Miles":
        passed += 1
    else:
        failed += ["artist_add_test( )"]