Adapt and update status package

This commit is contained in:
Daniel
2018-10-30 19:12:25 +01:00
parent c146c99273
commit 247c7dca00
3 changed files with 40 additions and 20 deletions

View File

@@ -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")
}