Ejemplo n.º 1
0
 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())
Ejemplo n.º 2
0
 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())
Ejemplo n.º 3
0
 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())