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)
예제 #2
0
    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")
예제 #4
0
    def test_Method(self):

        server = Session("www.example.com")
        request = Unlock(server, "/", "locked-up-in-chains")
        self.assertEqual(request.getMethod(), "UNLOCK")