Commit 8cb92b5a authored by Jirka Hlavacek's avatar Jirka Hlavacek

2404 Add test for find_all_mediaservers

parent 54f3c68b
......@@ -1302,6 +1302,13 @@ class TestAsteriskConfDAO(DAOTestCase, PickupHelperMixin):
assert_that(result, contains_inanyorder(*expected_result))
def test_find_all_mediaservers(self):
self.add_mediaserver(name='mds1', display_name='MDS1', voip_ip='10.10.0.1')
self.add_mediaserver(name='mds2', display_name='MDS2', voip_ip='10.10.0.2')
self.add_mediaserver(name='mds3', display_name='MDS3', voip_ip=None)
result = asterisk_conf_dao.find_all_mediaservers()
assert_that(len(result),equal_to(2))
def _create_user_with_usersip(self, **kwargs):
usersip = self.add_usersip(category='user')
ule = self.add_user_line_with_exten(protocol='sip',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment