﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7531	Usage of fixtures to set up sites breaks tests	madkinder@…	nobody	"#7517 led to this bug.
One might use fixtures to set up project's sites.

Steps to reproduce:

 1. Create the following initial_data.xml fixture:
{{{
<?xml version=""1.0"" encoding=""utf-8""?>
<django-objects version=""1.0"">
  <object pk=""1"" model=""sites.site"">
    <field type=""CharField"" name=""domain"">127.0.0.1:8000</field>
    <field type=""CharField"" name=""name"">testserver</field>
  </object>
</django-objects>
}}}
 1. Run '''./manage.py test'''. The test fails with the following message:
{{{
File ""/usr/local/lib/python2.5/site-packages/django/contrib/sites/tests.py"", line 5, in django.contrib.sites.tests
Failed example:
    s
Expected:
    <Site: example.com>
Got:
    <Site: 127.0.0.1:8000>
}}}
The reason is obvious: '''example.com''' is hardcoded into doctest."		closed	Uncategorized	dev		fixed			Unreviewed	0	0	0	0	0	0
