ENH: assert_warnings context manager to assert either warnings were raised + DeprecationWarning for allowedtype

let's wait for travis