def METHOD_NAME(self):
    self.getPage('/basic/')
    self.assertStatus(401)
    self.assertHeader(
        'WWW-Authenticate',
        'Basic realm="wonderland", charset="UTF-8"'
    )
    self.getPage('/basic/',
                 [('Authorization', 'Basic eHVzZXI6eHBhc3N3b3JX')])
    self.assertStatus(401)
    self.getPage('/basic/',
                 [('Authorization', 'Basic eHVzZXI6eHBhc3N3b3Jk')])
    self.assertStatus('200 OK')
    self.assertBody("Hello xuser, you've been authorized.")