Here are the examples of the python api mock.sentinel.portal0 taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
Project: compute-hyperv Source File: test_volumeops.py
def test_get_all_targets_multipath(self):
conn_props = {'target_portals': [mock.sentinel.portal0,
mock.sentinel.portal1],
'target_iqns': [mock.sentinel.target0,
mock.sentinel.target1],
'target_luns': [mock.sentinel.lun0,
mock.sentinel.lun1]}
expected_targets = zip(conn_props['target_portals'],
conn_props['target_iqns'],
conn_props['target_luns'])
resulted_targets = self._volume_driver._get_all_targets(conn_props)
self.assertEqual(list(expected_targets), list(resulted_targets))