Revision 0b7d3b31 ncclient/operations/lock.py

b/ncclient/operations/lock.py
18 18

  
19 19
class Lock(RPC):
20 20

  
21
    # TESTED
22

  
21 23
    "*<lock>* RPC"
22 24

  
23 25
    SPEC = {
......
42 44

  
43 45
class Unlock(RPC):
44 46

  
47
    # TESTED
48

  
45 49
    "*<unlock>* RPC"
46 50

  
47 51
    SPEC = {
......
66 70

  
67 71
class LockContext:
68 72

  
73
    # TESTED
74

  
69 75
    """
70 76
    A context manager for the :class:`Lock` / :class:`Unlock` pair of RPC's.
71 77

  
......
85 91
            return self
86 92

  
87 93
    def __exit__(self, *args):
88
        reply = Unlock(session).request(self.target)
94
        reply = Unlock(self.session).request(self.target)
89 95
        if not reply.ok:
90 96
            raise reply.error
91 97
        return False

Also available in: Unified diff