title: Django AssertionError: 404 != 200 in simple unit test class
body: <p>This is my Simple Test class,while running this test I am getting  <strong>AssertionError: 404 != 200</strong></p>
  
  <pre><code>class SimpleTest(unittest.TestCase):
  def setUp(self):
      # Every test needs a client.
      self.client = Client()
  
  def test_details(self):
      # Issue a GET request.
      response = self.client.get('/men/ethnic-wear/')
      print "code:",response.status_code
      # Check that the response is 200 OK.
      self.assertEqual(response.status_code, 200)
  </code></pre>
  
  <p>But if I test the same thing in Django shell it is returning status code 200.</p>
  
  <pre><code>In [21]: from django.test import Client
  
  In [22]: c = Client()
  
  In [23]: response = c.get('/men/ethnic-wear/')
  
  In [24]: response.status_code
  Out[24]: 200
  </code></pre>
  
  <p>First time I am writing unit test script referring official document ,is there any problem with my views?</p>