def testDeleteWithBadKey(self):
    """Tests delete() with success."""
    mod_type = 'owner'
    target = 'foouser'
    pkg_name = 'FooPkg-1.2'
    key_name = (target, pkg_name) % '%s##%s'
    mock_model = self._MockModTypeModel(mod_type)

    self.MockDoUserAuth(is_admin=True)
    self.request.get_all('install_types').AndReturn([])

    mock_model.get_by_key_name(key_name).AndReturn(None)
    self.MockError(404)

    self.mox.ReplayAll()
    self.c.delete(mod_type=mod_type, target=target, pkg_name=pkg_name)
    self.mox.VerifyAll()
dataset/ETHPy150Open google/simian/src/tests/simian/mac/api/dynamic_manifest_test.py/DynamicManifestHandlersTest.testDeleteWithBadKey/swapped operands of `%`