25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
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()