'`logout()` resets stored credentials'

def test_can_logout(self):

    self.client.credentials(HTTP_AUTHORIZATION=u'example')
    response = self.client.get(u'/view/')
    assert (response.data[u'auth'] == u'example')
    self.client.logout()
    response = self.client.get(u'/view/')
    assert (response.data[u'auth'] == '')
