title: Using Basic HTTP access authentication in Django testing framework
body: <p>For some of my Django views I've created a decorator that performs Basic HTTP access authentication.  However, while writing test cases in Django, it took me a while to work out how to authenticate to the view.  Here's how I did it. I hope somebody finds this useful.</p>