def test_warn(self):
        out = StringIO()
        with mock.patch('sys.stderr', out):
            warn('abc')
        self.assertTrue('GrabDeprecationWarning: abc' in out.getvalue())
dataset/ETHPy150Open lorien/grab/test/grab_error.py/GrabErrorTestCase.test_warn/original