Exemple #1
0
 def test_build_provision_request_calls_prep_attributes(self, prep_attributes_patch):
     d = Device()
     d.name = 'test'
     d.type = 'Polycom SoundPoint IP 650 + Expansion Module(1)'
     g = d.build_provision_request()
     # expect to see two calls
     self.assertEqual(2, len(prep_attributes_patch.call_args_list))
Exemple #2
0
 def attach_primary_device(self):
     # attach a primary device, with no line_port suffix
     d = Device(logging_level=self.logging_level)
     d.broadsoftinstance = self.broadsoftinstance
     d.logging_level = self.logging_level
     d.is_primary = True
     d.did = self.did
     d.description = self.attach_default_devices__build_description()
     d.type = 'Generic SIP Phone'
     d.derive_line_port()
     d.implicit_overwrite = False
     d.skip_if_exists = True
     self.devices.append(d)
Exemple #3
0
    def attach_sca(self, index=None):
        d = Device(logging_level=self.logging_level)
        d.index = self.derive_sca_index(index=index)
        d.broadsoftinstance = self.broadsoftinstance
        d.logging_level = self.logging_level
        d.is_primary = False
        d.did = self.did
        d.description = self.attach_default_devices__build_description()
        d.type = 'Generic SIP Phone'
        d.derive_line_port()
        d.implicit_overwrite = False
        d.skip_if_exists = True

        self.devices.append(d)