ENH: assert_warnings context manager to assert either warnings were raised + DeprecationWarning for allowedtype
BF: make warning catching work with older mock (as in precise)
nothing really -- just need to trigger tests