def _assert_setitem_index_conversion(self, original_series, loc_key,<EOL>expected_index, expected_dtype):
temp = original_series.copy()<EOL>temp[loc_key] = <NUM_LIT:5><EOL>exp = pd.Series([<NUM_LIT:1>, <NUM_LIT:2>, <NUM_LIT:3>, <NUM_LIT:4>, <NUM_LIT:5>], index=expected_index)<EOL>tm.assert_series_equal(temp, exp)<EOL>assert temp.index.dtype == expected_dtype<EOL>temp = original_series.copy()<EOL>temp.loc[loc_key] = <NUM_LIT:5><EOL>exp = pd.Series([<NUM_LIT:1>, <NUM_LIT:2>, <NUM_LIT:3>, <NUM_LIT:4>, <NUM_LIT:5>], index=expected_index)<EOL>tm.assert_series_equal(temp, exp)<EOL>assert temp.index.dtype == expected_dtype<EOL>
test index's coercion triggered by assign key