@@ -0,0 +1,1317 @@
+from __future__ import (absolute_import, division,%0A                        print_function, unicode_literals)%0A%0Afrom unittest import TestCase%0A%0Afrom fixtureupper.core import UpperRegister%0Afrom tests.unit.models import Article, Author%0A%0A%0Aclass TestUpperRegister(TestCase):%0A    def setUp(self):%0A        self.ModelFixtureUpper1 = UpperRegister()%0A        self.ModelFixtureUpper2 = UpperRegister()%0A%0A        class AuthorFixtureUpper(self.ModelFixtureUpper1):%0A            model = Author%0A%0A        class ArticleFixtureUpper(self.ModelFixtureUpper2):%0A            model = Article%0A%0A        self.m_fu_1 = self.ModelFixtureUpper1()%0A        self.m_fu_2 = self.ModelFixtureUpper2()%0A        self.AuthorFixtureUpperClass = AuthorFixtureUpper%0A        self.ArticleFixtureUpperClass = ArticleFixtureUpper%0A%0A    def test_registers_have_different_generator_classes(self):%0A        self.assertEqual(type(self.m_fu_1.get_upper('Author')), self.AuthorFixtureUpperClass)%0A        with self.assertRaises(KeyError):%0A            self.assertEqual(type(self.m_fu_1.get_upper('Article')), self.ArticleFixtureUpperClass)%0A%0A        with self.assertRaises(KeyError):%0A            self.assertEqual(type(self.m_fu_2.get_upper('Author')), self.AuthorFixtureUpperClass)%0A        self.assertEqual(type(self.m_fu_2.get_upper('Article')), self.ArticleFixtureUpperClass)%0A

Test upper register