示例#1
0
 def test_request_valid(self):
     url_test2 = self.URL_VALID
     w = Wrecon()
     data = w.request_get(url_test2)
     self.assertEqual(data.status_code, 200)
示例#2
0
 def test_request_invalid_url(self):
     url_test2 = 'axxaxaxax'
     w = Wrecon()
     data = w.request_get(url_test2)
     self.assertEqual(data.status_code, 400)
示例#3
0
 def test_request_invalid_request(self):
     url_test2 = 'https://api.github.com/authorizations'
     w = Wrecon()
     data = w.request_get(url_test2)
     self.assertNotEqual(data.status_code, 200)