def METHOD_NAME(self):
    e = OSError(EEXIST, "File already exists", "foo.txt")
    self.assertEqual(e.errno, EEXIST)
    self.assertEqual(e.args[0], EEXIST)
    self.assertEqual(e.strerror, "File already exists")
    self.assertEqual(e.filename, "foo.txt")
    if os.name == "nt":
        self.assertEqual(e.winerror, None)