def METHOD_NAME(self):
    # Test both readline and readlines.
    open_url = self.urlopen("http://www.python.org/")
    try:
        self.assertIsInstance(open_url.readline(), basestring,
                              "readline did not return a string")
        self.assertIsInstance(open_url.readlines(), list,
                              "readlines did not return a list")
    finally:
        open_url.close()