def test_assert_json(self):
    'Expecting json response but content type is not valid.'
    self.headers.append(('content-type', 'text/html; charset=UTF-8'))
    self.client.get('auth/token')
    self.assertRaises(AssertionError, (lambda : self.client.json))
Expecting json response but content type is not valid.
def test_assert_json(self):
    
    self.headers.append(('content-type', 'text/html; charset=UTF-8'))
    self.client.get('auth/token')
    self.assertRaises(AssertionError, (lambda : self.client.json))