Author: mboersma
Date: 2009-04-17 11:28:13 -0500 (Fri, 17 Apr 2009)
New Revision: 10581

Modified:
   django/branches/releases/1.0.X/tests/regressiontests/introspection/tests.py
Log:
[1.0.X] Fixed introspection test case which caused "ORA-00972: identifier is 
too long" errors against Oracle.


Modified: 
django/branches/releases/1.0.X/tests/regressiontests/introspection/tests.py
===================================================================
--- django/branches/releases/1.0.X/tests/regressiontests/introspection/tests.py 
2009-04-16 22:32:48 UTC (rev 10580)
+++ django/branches/releases/1.0.X/tests/regressiontests/introspection/tests.py 
2009-04-17 16:28:13 UTC (rev 10581)
@@ -50,10 +50,10 @@
 
     def test_django_table_names(self):
         cursor = connection.cursor()
-        cursor.execute('CREATE TABLE django_introspection_test_table (id 
INTEGER);');
+        cursor.execute('CREATE TABLE django_ixn_test_table (id INTEGER);');
         tl = connection.introspection.django_table_names()
-        cursor.execute("DROP TABLE django_introspection_test_table;")
-        self.assert_('django_introspection_testcase_table' not in tl,
+        cursor.execute("DROP TABLE django_ixn_test_table;")
+        self.assert_('django_ixn_testcase_table' not in tl,
                      "django_table_names() returned a non-Django table")
 
     def test_installed_models(self):
@@ -83,9 +83,9 @@
     if settings.DATABASE_ENGINE.startswith('postgresql'):
         def test_postgresql_real_type(self):
             cursor = connection.cursor()
-            cursor.execute("CREATE TABLE django_introspection_real_test_table 
(number REAL);")
-            desc = connection.introspection.get_table_description(cursor, 
'django_introspection_real_test_table')
-            cursor.execute('DROP TABLE django_introspection_real_test_table;')
+            cursor.execute("CREATE TABLE django_ixn_real_test_table (number 
REAL);")
+            desc = connection.introspection.get_table_description(cursor, 
'django_ixn_real_test_table')
+            cursor.execute('DROP TABLE django_ixn_real_test_table;')
             self.assertEqual(datatype(desc[0][1]), 'FloatField')
 
     def test_get_relations(self):


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to