1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-27 13:06:49 +01:00

[test/helper] Spelling

This commit is contained in:
Sergey M․ 2015-09-30 20:26:42 +06:00
parent 2e885de796
commit 386a7b52d5

View File

@ -134,7 +134,7 @@ def expect_value(self, got, expected, field):
type_expected = type(item_expected) type_expected = type(item_expected)
self.assertEqual( self.assertEqual(
type_expected, type_got, type_expected, type_got,
'Type doesn\'t match at element %d of the list in field %s, expect %s, got %s' % ( 'Type mismatch for list item at index %d for field %s, expected %r, got %r' % (
index, field, type_expected, type_got)) index, field, type_expected, type_got))
expect_value(self, item_got, item_expected, field) expect_value(self, item_got, item_expected, field)
else: else:
@ -152,7 +152,7 @@ def expect_value(self, got, expected, field):
return return
self.assertEqual( self.assertEqual(
expected, got, expected, got,
'invalid value for field %s, expected %r, got %r' % (field, expected, got)) 'Invalid value for field %s, expected %r, got %r' % (field, expected, got))
def expect_dict(self, got_dict, expected_dict): def expect_dict(self, got_dict, expected_dict):