Пример #1
0
 def test_order_form_name_field_label(self):
     form = OrderForm()
     self.assertEqual(form.fields['name'].label, 'Имя')
Пример #2
0
 def test_order_form_last_name_field_label(self):
     form = OrderForm()
     self.assertEqual(form.fields['last_name'].label, 'Фамилия')
Пример #3
0
 def test_order_form_date_field_label(self):
     form = OrderForm()
     self.assertEqual(form.fields['date'].label, 'Дата доставки')
Пример #4
0
 def test_order_form_date_field_help_text(self):
     form = OrderForm()
     self.assertEqual(
         form.fields['date'].help_text,
         'Доставка производится на следующий день после совершения заказа.')
Пример #5
0
 def test_order_form_comments_field_label(self):
     form = OrderForm()
     self.assertEqual(form.fields['comments'].label, 'Комментарии к заказу')
Пример #6
0
 def test_order_form_address_field_help_text(self):
     form = OrderForm()
     self.assertEqual(form.fields['address'].help_text,
                      'Обязательно указывайте город!')
Пример #7
0
 def test_order_form_address_field_label(self):
     form = OrderForm()
     self.assertEqual(form.fields['address'].label, 'Адрес доставки')
Пример #8
0
 def test_order_form_buying_type_field_label(self):
     form = OrderForm()
     self.assertEqual(form.fields['buying_type'].label, 'Способ получения')
Пример #9
0
 def test_order_form_phone_field_label(self):
     form = OrderForm()
     self.assertEqual(form.fields['phone'].label, 'Контактный телефон')