diff --git a/tests/test_aps.py b/tests/test_aps.py index 4e460db..833925e 100644 --- a/tests/test_aps.py +++ b/tests/test_aps.py @@ -174,12 +174,13 @@ def test_authors(results): 'raw_name': u'James P. Sethna', 'surname': u'Sethna'}] - sorted_expected_results = sorted(expected_results, key=lambda x: x['affiliations'][0]['value'] if x['affiliations'] else '') - sorted_results = sorted(results[0]['authors'], key=lambda x: x['affiliations'][0]['value'] if x['affiliations'] else '') + sorted_expected_results = sorted( + expected_results, key=lambda x: x['affiliations'][0]['value'] if x['affiliations'] else '') + sorted_results = sorted( + results[0]['authors'], key=lambda x: x['affiliations'][0]['value'] if x['affiliations'] else '') assert sorted_expected_results == sorted_results - def test_copyrights(results): """Test extracting copyright.""" expected_results = (