mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
Add codec debug tests in pysflphone
This commit is contained in:
@ -7,26 +7,32 @@ class SflPhoneTests(SflPhoneCtrlSimple):
|
||||
|
||||
def test_get_allaccounts_methods(self):
|
||||
|
||||
print "getAllAccounts()"
|
||||
print "--- getAllAccounts() ---"
|
||||
for account in self.getAllAccounts():
|
||||
print " " + account
|
||||
print "\n"
|
||||
|
||||
print "getAllRegisteredAccounts()"
|
||||
print "--- getAllRegisteredAccounts() ---"
|
||||
for account in self.getAllRegisteredAccounts():
|
||||
print " " + account
|
||||
print "\n"
|
||||
|
||||
print "getAllSipAccounts()"
|
||||
print "--- getAllSipAccounts() ---"
|
||||
for account in self.getAllSipAccounts():
|
||||
print " " + account
|
||||
print "\n"
|
||||
|
||||
print "getAllIaxAccounts()"
|
||||
print "--- getAllIaxAccounts() ---"
|
||||
for account in self.getAllIaxAccounts():
|
||||
print " " + account
|
||||
print "\n"
|
||||
|
||||
def test_codecs_methods
|
||||
|
||||
print "--- getCodecList() ---"
|
||||
for codec int self.getCodecList():
|
||||
print " " + codec
|
||||
print "\n"
|
||||
|
||||
|
||||
sfl = SflPhoneTests()
|
||||
|
@ -342,6 +342,19 @@ class SflPhoneCtrlSimple(object):
|
||||
except SflPhoneError, e:
|
||||
print e
|
||||
|
||||
#
|
||||
# Codec manager
|
||||
#
|
||||
|
||||
def getCodecList(self):
|
||||
""" Return the codec list """
|
||||
return self.configurationmanager.getCodecList()
|
||||
|
||||
def getActiveCodecList(self):
|
||||
""" Return the active codec list """
|
||||
return self.configurationmanager.getActiveCodecList()
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Call management
|
||||
|
Reference in New Issue
Block a user