Ejemplo n.º 1
0
 def test_sendDelete(self):
     url = 'https://w3schools.com/python/demopage.asp'
     command = ""
     security = NoneSecurity()
     rest = REST(security)
     response = rest.sendDelete(url, command)
     self.assertTrue(response.status_code, 400)
Ejemplo n.º 2
0
 def __init__(self):
     self.__url = 'https://www.goodreads.com'
     security = NoneSecurity()
     self.rest = REST(security)
Ejemplo n.º 3
0
 def __init__(self):
     self.__url = 'https://openlibrary.org'
     security = NoneSecurity()
     self.rest = REST(security)
Ejemplo n.º 4
0
 def test_constructor(self):
     security = NoneSecurity()
     rest = REST(security)
     self.assertTrue(isinstance(rest, APIClient))