Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
added testcase for 2536
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Sephton committed Sep 9, 2011
1 parent 005b1d5 commit b6be833
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion snippetscream/tests/__init__.py
@@ -1,10 +1,10 @@
import unittest

from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site
from django.core.urlresolvers import Resolver404

from snippetscream import PolyModel, resolve_to_name



class PolyTrunkModel(PolyModel):
Expand Down Expand Up @@ -71,3 +71,8 @@ def test_resolve_to_name(self):

# Bogus URL should result in Resolver404.
self.failUnlessRaises(Resolver404, resolve_to_name, '/some/bogus/url/')

class TestCase2537(unittest.TestCase):

def test_create_default_site(self):
self.failUnlessEqual(Site.objects.get().domain, 'localhost:8000', 'Should only have one site with domain set to localhost:8000.')

0 comments on commit b6be833

Please sign in to comment.