'check physical links if more than eight physical links.'

@mock.patch.object(helper.DS8KCommonHelper, 'get_physical_links')
def test_check_physical_links2(self, mock_get_physical_links):

    src_helper = FakeDS8KCommonHelper(self.configuration, None)
    repl = FakeReplication(src_helper, TEST_REPLICATION_DEVICE)
    mock_get_physical_links.return_value = [{'source_port_id': 'I0001', 'target_port_id': 'I0001'}, {'source_port_id': 'I0002', 'target_port_id': 'I0002'}, {'source_port_id': 'I0003', 'target_port_id': 'I0003'}, {'source_port_id': 'I0004', 'target_port_id': 'I0004'}, {'source_port_id': 'I0005', 'target_port_id': 'I0005'}, {'source_port_id': 'I0006', 'target_port_id': 'I0006'}, {'source_port_id': 'I0007', 'target_port_id': 'I0007'}, {'source_port_id': 'I0008', 'target_port_id': 'I0008'}, {'source_port_id': 'I0009', 'target_port_id': 'I0009'}]
    repl.check_physical_links()
    port_pairs = repl._target_helper.backend['port_pairs']
    self.assertEqual(8, len(port_pairs))
