def setUp(self, params={}): self.Api = vkNApi() self.params = { 'user_id': user_id, 'email': email, 'password': password }
def testScenario(self): api = vkNApi() r,b,c = api.authenticate(email,password) api.download_photo_album(c, "album27053008_000") api.download_photo_variants(c, "photo27053008_291919354", "max") print "Exit"
def test_ip_address(self): self.api = vkNApi() if network_defaults['use_tor'] == False: return True r,b,c = self.api.get("http://icanhazip.com/") self.assertEqual(r["status"], '200') print "[TOR_IP_ADDRESS]", b
def test_ip_address(self): self.api = vkNApi() if network_defaults['use_tor'] == False: return True r, b, c = self.api.get("http://icanhazip.com/") self.assertEqual(r["status"], '200') print "[TOR_IP_ADDRESS]", b
def setUp(self, params={}): self.Api = vkNApi() self.params = {'user_id':user_id, 'email': email, 'password': password}
def testAuth(self): api = vkNApi() r,b,c = api.authenticate(self.params['email'], self.params['password']) self.assertNotIn("Моментальная регистрация", b)
def testGet(self): self.Api = vkNApi() r,b,c = self.Api.get("http://vk.com") self.assertEqual(r["status"], '200')
def testAuth(self): api = vkNApi() r, b, c = api.authenticate(self.params['email'], self.params['password']) self.assertNotIn("Моментальная регистрация", b)
def testGet(self): self.Api = vkNApi() r, b, c = self.Api.get("http://vk.com") self.assertEqual(r["status"], '200')