test_index_rest.py 180 B

12345678910111213
  1. #!/usr/bin/env python
  2. # coding: utf-8
  3. #
  4. #
  5. import requests
  6. HOST = 'http://localhost:3000'
  7. def test_index_get():
  8. r = requests.get(HOST + '/')
  9. assert r.status_code == 200