def test_create_with_invalid_passphrase(self):
        cert, key = generate_cert_and_pkey(as_string=True, passphrase='correct')
        form = APNServiceForm({'name': 'test', 'hostname': 'localhost', 'certificate': cert, 'private_key': key, 'passphrase': 'incorrect'})
        self.assertFalse(form.is_valid())
        self.assertTrue(form.errors in 'passphrase')
dataset/ETHPy150Open stephenmuss/django-ios-notifications/ios_notifications/tests.py/APNServiceTest.test_create_with_invalid_passphrase/swapped operands of `in`