def test_delete(): from palladium.fit import delete persister = Mock() delete(persister, 2) persister.delete.assert_called_with(2)