You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lua-ngcp-kamailio/tests/ngcp.lua

22 lines
445 B

#!/usr/bin/env lua5.1
require('luaunit')
require 'ngcp'
TestNGCP = {} --class
function TestNGCP:setUp()
self.ngcp = NGCP:new()
end
function TestNGCP:test_config()
assertEquals( self.ngcp.preference.domain.name , 'domain' )
assertEquals( self.ngcp.preference.peer.name , 'peer' )
end
-- class TestNGCP
---- Control test output:
lu = LuaUnit
lu:setOutputType( "TAP" )
lu:setVerbosity( 1 )
lu:run()
--EOF