title: Django test loading css file
body: <p>I have been trying to test whether a css file loads or not.</p>
  
  <p>I tried using following code but it returns <code>404</code> code. The css file loads fine in browser.</p>
  
  <pre><code>client = Client()
  response = client.get('/static/css/astyle.css')
  self.assertEqual(200, response.status_code) # 200 != 404
  </code></pre>
  
  <p>How can I use selenium to test if a css file loads or not?</p>