def test_LockTokenHeaders(self): server = Session("www.example.com") request = Unlock(server, "/", "locked-up-in-chains") hdrs = request.generateRequestHeader() self.assertTrue("Lock-Token: <locked-up-in-chains>" in hdrs)
def test_Method(self): server = Session("www.example.com") request = Unlock(server, "/", "locked-up-in-chains") self.assertEqual(request.getMethod(), "UNLOCK")