def test_get_last_error(self):
    self.addCleanup(self.WSASetLastError, 0)
    self.WSASetLastError(4242)
    self.assertEqual(WSAGetLastError(), 4242)
def test_get_last_error(self):
    self.addCleanup(self.WSASetLastError, 0)
    self.WSASetLastError(4242)
    self.assertEqual(WSAGetLastError(), 4242)