Revert "Convert docstrings to reStructuredText"
This reverts commit 3b1bd242d0.
This commit is contained in:
@@ -49,9 +49,9 @@ class TestCase(unittest.TestCase):
|
||||
def failUnlessRaises(self, exception, f, *args, **kwargs):
|
||||
try:
|
||||
result = f(*args, **kwargs)
|
||||
except exception as inst:
|
||||
except exception, inst:
|
||||
return inst
|
||||
except exception as e:
|
||||
except exception, e:
|
||||
raise Exception('%s raised instead of %s:\n %s' %
|
||||
(sys.exec_info()[0], exception.__name__, str(e))
|
||||
)
|
||||
@@ -63,14 +63,9 @@ class TestCase(unittest.TestCase):
|
||||
assertRaises = failUnlessRaises
|
||||
|
||||
def readCue(self, name):
|
||||
"""Read a cue file and replace its version number with the current one.
|
||||
|
||||
The version number is replaced to use the cue file in comparisons.
|
||||
|
||||
:param name: cuesheet filename (without path).
|
||||
:type name: str
|
||||
:returns: the cuesheet with version number replaced.
|
||||
:rtype: str
|
||||
"""
|
||||
Read a .cue file, and replace the version comment with the current
|
||||
version so we can use it in comparisons.
|
||||
"""
|
||||
cuefile = os.path.join(os.path.dirname(__file__), name)
|
||||
ret = open(cuefile).read().decode('utf-8')
|
||||
|
||||
@@ -110,7 +110,7 @@ class TestVerifyResult(TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.result = RipResult()
|
||||
for n in range(1, 2 + 1):
|
||||
for n in range(1, 2+1):
|
||||
track = TrackResult()
|
||||
track.number = n
|
||||
self.result.tracks.append(track)
|
||||
|
||||
@@ -116,9 +116,11 @@ class MetadataTestCase(unittest.TestCase):
|
||||
)
|
||||
|
||||
def testNorthernGateway(self):
|
||||
"""Check MBz metadata for artists tagged with: [unknown] / an alias.
|
||||
"""
|
||||
check the received metadata for artists tagged with [unknown]
|
||||
and artists tagged with an alias in MusicBrainz
|
||||
|
||||
.. seealso:: https://github.com/JoeLametta/whipper/issues/156
|
||||
see https://github.com/JoeLametta/whipper/issues/155
|
||||
"""
|
||||
filename = 'whipper.release.38b05c7d-65fe-4dc0-9c10-33a391b86703.json'
|
||||
path = os.path.join(os.path.dirname(__file__), filename)
|
||||
@@ -155,12 +157,9 @@ class MetadataTestCase(unittest.TestCase):
|
||||
)
|
||||
|
||||
def testNenaAndKimWildSingle(self):
|
||||
"""Check MBz metadata for artists with different names.
|
||||
|
||||
An artist can have different names on MusicBrainz like:
|
||||
*artist in MusicBrainz*, *artist as credited*.
|
||||
|
||||
.. seealso:: https://github.com/JoeLametta/whipper/issues/156
|
||||
"""
|
||||
check the received metadata for artists that differ between
|
||||
named on release and named in recording
|
||||
"""
|
||||
filename = 'whipper.release.f484a9fc-db21-4106-9408-bcd105c90047.json'
|
||||
path = os.path.join(os.path.dirname(__file__), filename)
|
||||
|
||||
Reference in New Issue
Block a user