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