mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
47 lines
986 B
Python
47 lines
986 B
Python
#!/usr/bin/env python
|
|
|
|
from sflphonectrlsimple import SflPhoneCtrlSimple
|
|
|
|
|
|
class SflPhoneTests(SflPhoneCtrlSimple):
|
|
|
|
def test_get_allaccounts_methods(self):
|
|
|
|
print "--- getAllAccounts() ---"
|
|
for account in self.getAllAccounts():
|
|
print " " + account
|
|
print "\n"
|
|
|
|
print "--- getAllRegisteredAccounts() ---"
|
|
for account in self.getAllRegisteredAccounts():
|
|
print " " + account
|
|
print "\n"
|
|
|
|
print "--- getAllSipAccounts() ---"
|
|
for account in self.getAllSipAccounts():
|
|
print " " + account
|
|
print "\n"
|
|
|
|
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()
|
|
|
|
sfl.test_get_allaccounts_methods()
|
|
|
|
|
|
|
|
|
|
|
|
|