def METHOD_NAME(self):
    assert_raises(
        ValueError,
        insert(self.tables.foos).values({}).on_duplicate_key_update,
    )
    assert_raises(
        exc.ArgumentError,
        insert(self.tables.foos).values({}).on_duplicate_key_update,
        {"id": 1, "bar": "b"},
        id=1,
        bar="b",
    )
    assert_raises(
        exc.ArgumentError,
        insert(self.tables.foos).values({}).on_duplicate_key_update,
        {"id": 1, "bar": "b"},
        {"id": 2, "bar": "baz"},
    )