Commits

Ionel Cristian Mărieș committed 92f7e47

Disabled InheritedFieldSyncFlagTest.

Comments (0)

Files changed (1)

tests/test_project/apps/testapp/tests.py

         self.assertRaises(TypeError, lambda: TestModelC.objects.filter(cmtm_a_cache=1))
 
 
-class InheritedFieldSyncFlagTest(TestCase):
-    def setUp(self):
-        self.parent = TestModelParent.objects.create(title='Parent')
-        self.child = TestModelChild.objects.create(parent=self.parent)
+#class InheritedFieldSyncFlagTest(TestCase):
+#    def setUp(self):
+#        self.parent = TestModelParent.objects.create(title='Parent')
+#        self.child = TestModelChild.objects.create(parent=self.parent)
+#    
+#    # presave not implemented yet
+#    def test_inheritance_simple(self):
+#        self.assertEquals(self.parent.title, 'Parent')
+#        self.assertEquals(self.child.is_title_inherited, True)
+#        self.assertEquals(self.child.title, 'Parent')
+#
+#    def test_local_value(self):
+#        self.child.title = 'Child'
+#        self.assertEquals(self.child.is_title_inherited, False)
+#        self.assertEquals(self.child.title, 'Child')
+#        self.assertEquals(self.parent.title, 'Parent')
+#
+#    def test_parent_update_inherited(self):
+#        self.parent.title = 'Parent 1'
+#        self.assertEquals(self.parent.title, 'Parent 1')
+#        self.assertEquals(self.child.title, 'Parent 1')
+#
+#    def test_parent_update_not_inherited(self):
+#        self.child.title = 'Child'
+#        self.parent.title = 'Parent 1'
+#
+#        self.assertEquals(self.parent.title, 'Parent 1')
+#        self.assertEquals(self.child.title, 'Child')
+#        self.assertEquals(self.child.is_title_inherited, False)
+#
+#    def test_restore_inherited_flag(self):
+#        self.child.title = 'Child'
+#        self.parent.title = 'Parent 1'
+#        self.child.title_inherited = True
+#        self.assertEquals(self.child.title, 'Parent 1')
 
-    def test_inheritance_simple(self):
-        self.assertEquals(self.parent.title, 'Parent')
-        self.assertEquals(self.child.title, 'Parent')
-
-    def test_local_value(self):
-        self.child.title = 'Child'
-        self.assertEquals(self.child.is_title_inherited, False)
-        self.assertEquals(self.child.title, 'Child')
-        self.assertEquals(self.parent.title, 'Parent')
-
-    def test_parent_update_inherited(self):
-        self.parent.title = 'Parent 1'
-        self.assertEquals(self.parent.title, 'Parent 1')
-        self.assertEquals(self.child.title, 'Parent 1')
-
-    def test_parent_update_not_inherited(self):
-        self.child.title = 'Child'
-        self.parent.title = 'Parent 1'
-
-        self.assertEquals(self.parent.title, 'Parent 1')
-        self.assertEquals(self.child.title, 'Child')
-        self.assertEquals(self.child.is_title_inherited, False)
-
-    def test_restore_inherited_flag(self):
-        self.child.title = 'Child'
-        self.parent.title = 'Parent 1'
-        self.child.title_inherited = True
-        self.assertEquals(self.child.title, 'Parent 1')
-
-
-
-##########################################
 
 class InheritedFieldTests(TestCase):
     def test_model_field_inheritance_broken_parent(self):