Added tests for call loders with empty values

squeeze-backports
Victor Seva 13 years ago
parent f33239a683
commit ceae8b80f2

@ -64,6 +64,14 @@ TestNGCP = {} --class
assertTrue(self.ngcp.prefs.real) assertTrue(self.ngcp.prefs.real)
end end
function TestNGCP:test_load_caller()
assertEquals(self.ngcp:caller_load(), {real={}, peer={}})
end
function TestNGCP:test_load_callee()
assertEquals(self.ngcp:callee_load(), {real={}, peer={}})
end
function TestNGCP:test_clean() function TestNGCP:test_clean()
local xavp = NGCPXAvp:new('callee','usr_prefs') local xavp = NGCPXAvp:new('callee','usr_prefs')
xavp("testid",1) xavp("testid",1)

Loading…
Cancel
Save