Пример #1
0
 def test_create_valid_story_on_newyear_eve(self):
     form = StoryForm(data=self.data)
     self.assertTrue(form.is_valid(), form.errors)
Пример #2
0
 def test_create_valid_story_on_newyear_eve(self):
     form = StoryForm(data=self.data)
     self.assertTrue(form.is_valid(), form.errors)
Пример #3
0
 def test_empty_form_is_not_valid(self):
     form = StoryForm() 
     self.assertFalse(form.is_valid())
Пример #4
0
 def test_empty_form_is_not_valid(self):
     form = StoryForm()
     self.assertFalse(form.is_valid())