def test_non_existant_site(self):
        sblob, resp = self.export_services(
            'service.name="{0}"'.format(self.s1.name)
        )
        self.assertEqual(200, resp.status_code, resp.content)
        self.assertEqual(
            1, len(sblob['services']), "Should have seen only one service"
        )

        sblob['services'][0]['site'] = 'asdf'

        resp_json, resp = self.import_services(sblob)
        self.assertEqual(
            resp.status_code, 400, "Expected error but got: "
            "{0}".format(resp.content)
        )

        self.assertTrue(
            resp_json in 'errors', "expected to see an 'errors' key"
        )
dataset/ETHPy150Open mozilla/inventory/core/service/tests/test_api.py/ServiceAPITests.test_non_existant_site/swapped operands of `in`