選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

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