Test ILockable components:
subclass and supply two things for each lock components you need to
test.
Methods
|
|
setUp
testLockDone
testLockFailLocked
testLockFailNoKey
testUnlockDone
testUnlockFailNoKey
testUnlockFailNotLocked
|
|
setUp
|
setUp ( self )
|
|
testLockDone
|
testLockDone ( self )
check that you can lock the obj
|
|
testLockFailLocked
|
testLockFailLocked ( self )
check that you can't lock what is locked
|
|
testLockFailNoKey
|
testLockFailNoKey ( self )
check that not having the key returns an error
|
|
testUnlockDone
|
testUnlockDone ( self )
check that the object can be unlocked
|
|
testUnlockFailNoKey
|
testUnlockFailNoKey ( self )
check that not having the key returns an error
|
|
testUnlockFailNotLocked
|
testUnlockFailNotLocked ( self )
check that you can't unlock what is not locked
|