Adapt and update status package
This commit is contained in:
@@ -6,30 +6,30 @@ func TestStatus(t *testing.T) {
|
||||
|
||||
SetCurrentSecurityLevel(SecurityLevelOff)
|
||||
SetSelectedSecurityLevel(SecurityLevelOff)
|
||||
if FmtSecurityLevel() != "Off" {
|
||||
if FmtCurrentSecurityLevel() != "Off" {
|
||||
t.Error("unexpected string representation")
|
||||
}
|
||||
|
||||
SetCurrentSecurityLevel(SecurityLevelDynamic)
|
||||
SetSelectedSecurityLevel(SecurityLevelDynamic)
|
||||
if FmtSecurityLevel() != "Dynamic" {
|
||||
if FmtCurrentSecurityLevel() != "Dynamic" {
|
||||
t.Error("unexpected string representation")
|
||||
}
|
||||
|
||||
SetCurrentSecurityLevel(SecurityLevelSecure)
|
||||
SetSelectedSecurityLevel(SecurityLevelSecure)
|
||||
if FmtSecurityLevel() != "Secure" {
|
||||
if FmtCurrentSecurityLevel() != "Secure" {
|
||||
t.Error("unexpected string representation")
|
||||
}
|
||||
|
||||
SetCurrentSecurityLevel(SecurityLevelFortress)
|
||||
SetSelectedSecurityLevel(SecurityLevelFortress)
|
||||
if FmtSecurityLevel() != "Fortress" {
|
||||
if FmtCurrentSecurityLevel() != "Fortress" {
|
||||
t.Error("unexpected string representation")
|
||||
}
|
||||
|
||||
SetSelectedSecurityLevel(SecurityLevelDynamic)
|
||||
if FmtSecurityLevel() != "Fortress*" {
|
||||
if FmtCurrentSecurityLevel() != "Fortress*" {
|
||||
t.Error("unexpected string representation")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user