'Test _is_user_snap_sync_finished.'

def test_is_user_snap_sync_finished(self):

    sess_mock = mock.Mock()
    sess_mock.refresh = mock.Mock()
    sess_mock.generation_number = 548
    sess_mock.current_snapshot_id = None
    sess_mock.current_snapshot_progress = 100
    sess_mock.current_snapshot_id = None
    self.driver.snap_updates = [{'tgt_ssn': sess_mock, 'gno': 548, 'stime': time.time()}]
    result = self.driver._is_user_snap_sync_finished()
    self.assertIsNone(result)
