def test_service_with_invalid_user(self, email_users_create_mock): with self.assertRaises(ValidationError): self.service( user_id=fake.random_digit(), subject=fake.bothify(text='Subject Number: ????-###'), body_text=fake.bothify(text='Body text: ????-###'), body_html=fake.bothify(text='Body html: ????-###') )
def test_selector_return_nothing(self, specialty_by_id_mock): with self.assertRaises(ValidationError): self.selector(id=fake.random_digit())
def test_specialty_no_souch_found(self, specialty_update_mock): with self.assertRaises(ValidationError): self.service(specialty_id=fake.random_digit(),data={})
def test_selector_return_nothing(self, appointment_assign_by_id_mock): with self.assertRaises(ValidationError): self.selector(id=fake.random_digit())