def test_combine_should_combine_base_snapshot_location_with_snapshot_name( self): # Act snapshot_path = SnapshotRetriever.combine('snapshot1/snapshot2', 'snapshot3') # Assert self.assertEqual(snapshot_path, 'snapshot1/snapshot2/snapshot3')
def _get_snapshot_name_to_be_created(snapshot_name, vm): current_snapshot_name = SnapshotRetriever.get_current_snapshot_name(vm) if not current_snapshot_name: return snapshot_name return SnapshotRetriever.combine(current_snapshot_name, snapshot_name)
def _get_snapshot_name_to_be_created(snapshot_name, vm): current_snapshot_name = SnapshotRetriever.get_current_snapshot_name(vm) if not current_snapshot_name: return snapshot_name return SnapshotRetriever.combine(current_snapshot_name, snapshot_name)
def test_combine_should_combine_base_snapshot_location_with_snapshot_name(self): # Act snapshot_path = SnapshotRetriever.combine('snapshot1/snapshot2', 'snapshot3') # Assert self.assertEqual(snapshot_path, 'snapshot1/snapshot2/snapshot3')