when run develop server (py manage.py runserver), and user browser with url "localhost:8000//index.html", it is giving 404.
but when run test, client.get('//index.html') is 200, and content is same as request to ('/').
when run develop server, using py manage.py shell, then from django.test import Client, directly run is same result.
so is it an issue of Client.get() function? or I am using it wrongly?
def test_invalid_url2(self): response=self.client.get('//index.html') self.assertEqual(response.status_code, 404)