

def test_os_error_not_implemented(self):
    with cm.assertRaises(OSError) as cm:
        stubs.os_error_not_implemented()
    self.mox.VerifyAll()
    e = cm.exception
    self.assertEqual(errno.ENOSYS, e.errno)
    self.assertEqual('Function not implemented', e.strerror)
    self.assertIsNone(e.filename)

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/python/stubs_test.py StubsTest.test_os_error_not_implemented/VarMisuse@11/17 `self`->`cm`