Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

12 wiersze
328 B

  1. import unittest
  2. import urllib, urllib2, os
  3. class TestREST(unittest.TestCase):
  4. def test_home(self):
  5. req = urllib2.Request('http://localhost/rmehta/wnframework-client/')
  6. req.get_method = lambda: 'GET'
  7. response = urllib2.urlopen(req)
  8. self.assertTrue(response.getcode()==200)
  9. if __name__=='__main__':
  10. unittest.main()