コード例 #1
0
ファイル: tests.py プロジェクト: rahulgarg97/urban-thrifter
 def test_complaint_contains_without_subject_message_data(self):
     form = Complaint(
         uploaded_at=timezone.now(),
         image=None,
     )
     form.reservation_post = create_reservation_post()
     form.issuer = form.reservation_post.helpseeker
     form.receiver = form.reservation_post.donor
     self.assertFalse(form.save())
コード例 #2
0
ファイル: tests.py プロジェクト: rahulgarg97/urban-thrifter
 def test_complaint_contains_without_image(self):
     form = Complaint(
         subject="hi all,",
         message="yippie",
         uploaded_at=timezone.now(),
     )
     form.reservation_post = create_reservation_post()
     form.issuer = form.reservation_post.helpseeker
     form.receiver = form.reservation_post.donor
     self.assertFalse(form.save())
コード例 #3
0
ファイル: tests.py プロジェクト: rahulgarg97/urban-thrifter
 def test_complaint_contains_no_data(self):
     form = Complaint()
     form.reservation_post = create_reservation_post()
     form.issuer = form.reservation_post.helpseeker
     form.receiver = form.reservation_post.donor
     self.assertFalse(form.save())