Commit 1a4ecdf5 authored by Javier Quinteros's avatar Javier Quinteros

Minor changes in docstrings

parent 88f7f81e
...@@ -35,6 +35,14 @@ class ConversionTests(unittest.TestCase): ...@@ -35,6 +35,14 @@ class ConversionTests(unittest.TestCase):
""" """
def __callURL(self, url, decode='utf-8'): def __callURL(self, url, decode='utf-8'):
"""Method to call a URL and return its response
:param url: URL to be called
:type url: str
:param decode: Decode to apply
:type decode: str or NoneType
:return: str or bytes
"""
req = ul.Request(url) req = ul.Request(url)
u = ul.urlopen(req, timeout=15) u = ul.urlopen(req, timeout=15)
...@@ -44,7 +52,6 @@ class ConversionTests(unittest.TestCase): ...@@ -44,7 +52,6 @@ class ConversionTests(unittest.TestCase):
return u.read() return u.read()
def testStationWSTextNetwork(self): def testStationWSTextNetwork(self):
"""StationWS with network level and format text""" """StationWS with network level and format text"""
...@@ -131,8 +138,7 @@ class ConversionTests(unittest.TestCase): ...@@ -131,8 +138,7 @@ class ConversionTests(unittest.TestCase):
# FIXME Most probably the headers differ. Check! # FIXME Most probably the headers differ. Check!
return return
self.assertTrue(np.array_equal(orig, waveform), 'Wrong comparison for chstop undefined via Dataselect!') self.assertTrue(orig, waveform, 'Wrong comparison for chstop undefined via Dataselect!')
# self.assertEqual(orig[0].stats, conv[0].stats, 'Wrong comparison for one record and one channel!')
def testOneChannel(self): def testOneChannel(self):
"""One record from one channel""" """One record from one channel"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment