Explorar o código

Fixed typos in tests/forms_tests/tests/test_formsets.py.

Ties Jan Hefting %!s(int64=3) %!d(string=hai) anos
pai
achega
47cb85b542
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      tests/forms_tests/tests/test_formsets.py

+ 3 - 3
tests/forms_tests/tests/test_formsets.py

@@ -602,8 +602,8 @@ class FormsFormsetTestCase(SimpleTestCase):
             ],
         )
 
-    def test_formsets_with_order_custom_widget(self):
-        class OrderingAttributFormSet(BaseFormSet):
+    def test_formsets_with_ordering_custom_widget(self):
+        class OrderingAttributeFormSet(BaseFormSet):
             ordering_widget = HiddenInput
 
         class OrderingMethodFormSet(BaseFormSet):
@@ -611,7 +611,7 @@ class FormsFormsetTestCase(SimpleTestCase):
                 return HiddenInput(attrs={'class': 'ordering'})
 
         tests = (
-            (OrderingAttributFormSet, '<input type="hidden" name="form-0-ORDER">'),
+            (OrderingAttributeFormSet, '<input type="hidden" name="form-0-ORDER">'),
             (OrderingMethodFormSet, '<input class="ordering" type="hidden" name="form-0-ORDER">'),
         )
         for formset_class, order_html in tests: