def METHOD_NAME(self):
    # Test range checking by settimeout()
    self.assertRaises(ValueError, self.sock.settimeout, -1)
    self.assertRaises(ValueError, self.sock.settimeout, -1L)
    self.assertRaises(ValueError, self.sock.settimeout, -1.0)