Exemplo n.º 1
0
    def test_form_renders_item_text_input(self):
        """ test as name suggests """

        list_ = List.objects.create()
        form = ExistingListItemForm(for_list=list_)

        self.assertIn('placeholder="Enter a to-do item"', form.as_p())
Exemplo n.º 2
0
 def test_form_renders_item_text_input(self):
     list_ = List.objects.create()
     form = ExistingListItemForm(for_list=list_)
     assert 'placeholder="Enter a to-do item"' in form.as_p()
Exemplo n.º 3
0
	def Test_form_renders_item_text_imput(self):
		list_ = List.objects.create()
		form = ExistingListItemForm(for_list=list_)
		self.assertIn('placeholder="Enter a to-do item"', form.as_p())
Exemplo n.º 4
0
 def test_form_renders_item_text_input(self):
     lst = List.objects.create()
     form = ExistingListItemForm(for_list=lst)
     self.assertIn('placeholder="Enter a To-Do item"', form.as_p())
Exemplo n.º 5
0
	def test_form_item_input_has_placeholder_and_css_classes(self):
		list_ = List.objects.create()
		form = ExistingListItemForm(for_list=list_)
		self.assertIn('placeholder="작업 아이템 입력"', form.as_p())
Exemplo n.º 6
0
 def test_form_renders_item_text_input(self):
     list_ = List.objects.create()
     form = ExistingListItemForm(for_list=list_)
     self.assertIn('placeholder="Enter a to-do item"', form.as_p())
Exemplo n.º 7
0
 def test_form_renders_item_text_input(self):
     list_ = List.objects.create()
     form = ExistingListItemForm(for_list=list_)
     self.assertIn(f'placeholder="{INPUT_PLACEHOLDER}"', form.as_p())
Exemplo n.º 8
0
 def text_form_renders_item_text_input(self):
     list_ = List.objects.create()
     form = ExistingListItemForm(for_list=list_)
     self.assertIn('placeholder="Just write down sth."', form.as_p())
Exemplo n.º 9
0
 def test_form_renders_item_text_input(self):
     list_ = List.objects.create()
     form = ExistingListItemForm(for_list=list_)
     self.assertIn('placeholder="Nueva Tarea a realizar', form.as_p())
Exemplo n.º 10
0
 def test_form_renders_item_text_input(self):
     """тест: форма отображает текстовый ввод элемента"""
     list_ = List.objects.create()
     form = ExistingListItemForm(for_list=list_)
     self.assertIn('placeholder="Enter a to-do item"', form.as_p())
Exemplo n.º 11
0
 def testFormRendersItemTextInput(self):
     theList = List.objects.create()
     form = ExistingListItemForm(for_list=theList)
     self.assertIn('placeholder="Enter a to-do item"', form.as_p())
Exemplo n.º 12
0
	def test_form_renders_item_text_input(self):
		form = ExistingListItemForm()
		self.assertIn('placeholder="Enter a to-do item"', form.as_p())
Exemplo n.º 13
0
 def test_form_renders_item_text_input(self):
     form = ExistingListItemForm(for_list=self.list)
     self.assertIn('placeholder="Enter a to-do item"', form.as_p())
Exemplo n.º 14
0
 def test_form_renders_item_text_input(self):
     list_ = List.objects.create()
     form = ExistingListItemForm(for_list=list_)
     self.assertIn('placeholder="작업 아이템 입력"', form.as_p())
Exemplo n.º 15
0
 def test_form_renders_item_text_input(self):
     cargo_list = List.objects.create()
     form = ExistingListItemForm(for_list=cargo_list)
     self.assertIn('placeholder="Enter a cargo type', form.as_p())
Exemplo n.º 16
0
 def test_form_renders_item_text_input(self):
     the_list = List.objects.create()
     form = ExistingListItemForm(for_list=the_list)
     self.assertIn('placeholder="Enter a to-do item"', form.as_p())
     self.assertIn('class="form-control input-lg"', form.as_p())
Exemplo n.º 17
0
    def test_form_renders_item_text_input(self):
        new_list = List.objects.create()
        form = ExistingListItemForm(for_list=new_list)

        self.assertIn('placeholder="Enter a to-do item"', form.as_p())
        self.assertIn('class="form-control input-lg"', form.as_p())