Fixed #22356 -- Added a check to make sure unique_together fields are local.
Refs #18586 - Refactored model get_or_create test.

Refactored get_or_create test into several smaller test functions across two
different test classes. Also converted the comments over to docstrings.
Merge pull request #2553 from liavkoren-vmfarms/ticket_18586

Ticket 18586
Fixed #22439 -- Improved LiveServerTestCase logging

There should no longer be any output to stderr or stdout from the
server thread.  All of the messages which had been going there, as
well as the ones which were previously being thrown away to
prevent them from interfering with the test runner output, should
now be logged to the "django.request" logger instead.

Added unit tests, bytes vs. unicode cleanup