Commit 43920cd3 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Remove a handful of `import *` from the tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 406f9d1f
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -4,16 +4,17 @@
Strings can be used instead of model literals to set up "lazy" relations.
"""

from django.db.models import *
from django.db import models

class Parent(Model):
    name = CharField(max_length=100)

class Parent(models.Model):
    name = models.CharField(max_length=100)

    # Use a simple string for forward declarations.
    bestchild = ForeignKey("Child", null=True, related_name="favoured_by")
    bestchild = models.ForeignKey("Child", null=True, related_name="favoured_by")

class Child(Model):
    name = CharField(max_length=100)
class Child(models.Model):
    name = models.CharField(max_length=100)

    # You can also explicitally specify the related app.
    parent = ForeignKey("mutually_referential.Parent")
    parent = models.ForeignKey("mutually_referential.Parent")
+2 −1
Original line number Diff line number Diff line
from django.conf.urls.defaults import *
from django.conf.urls import patterns, include
from django.contrib import admin


urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
)
+9 −9
Original line number Diff line number Diff line
from django.dispatch.saferef import *

from django.dispatch.saferef import safeRef
from django.utils import unittest


class Test1(object):
    def x(self):
        pass
+2 −1
Original line number Diff line number Diff line
@@ -4,8 +4,10 @@ from django.forms import *
from django.test import TestCase
from django.utils.safestring import mark_safe
from django.utils import unittest

from regressiontests.forms.tests.fields import verify_exists_urls


class AssertFormErrorsMixin(object):
    def assertFormErrors(self, expected, the_callable, *args, **kwargs):
        try:
@@ -14,7 +16,6 @@ class AssertFormErrorsMixin(object):
        except ValidationError, e:
            self.assertEqual(e.messages, expected)


class FormsErrorMessagesTestCase(unittest.TestCase, AssertFormErrorsMixin):
    def test_charfield(self):
        e = {
+4 −3
Original line number Diff line number Diff line
# coding: utf-8
from __future__ import with_statement
from django.test import TestCase

from django.utils.text import *
from django.utils.http import urlquote, urlquote_plus, cookie_date, http_date
from django.test import TestCase
from django.utils.encoding import iri_to_uri
from django.utils.http import urlquote, urlquote_plus, cookie_date, http_date
from django.utils.text import get_text_list, smart_split
from django.utils.translation import override


class TextTests(TestCase):
    """
    Tests for stuff in django.utils.text and other text munging util functions.
Loading