summaryrefslogtreecommitdiff
path: root/tests/backends/oracle/test_operations.py
blob: d73df9a05c66bb96c3d7c12a13825e0ccc7c1743 (plain)
1
2
3
4
5
6
7
8
9
10
11
import unittest

from django.db import connection


@unittest.skipUnless(connection.vendor == 'oracle', 'Oracle tests')
class OperationsTests(unittest.TestCase):

    def test_sequence_name_truncation(self):
        seq_name = connection.ops._get_no_autofield_sequence_name('schema_authorwithevenlongee869')
        self.assertEqual(seq_name, 'SCHEMA_AUTHORWITHEVENLOB0B8_SQ')