Skip to content

Commit 008a079

Browse files
committed
Extend tests to capture multi-value cases.
1 parent 8bcd887 commit 008a079

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,15 @@ def test_as_json(self):
252252
assert md['keywords'] == ['sample', 'package']
253253
desc = md['description']
254254
assert desc.startswith('Once upon a time\nThere was')
255+
assert len(md['requires_dist']) == 2
255256

256257
def test_as_json_egg_info(self):
257258
md = metadata('egginfo-pkg').json
258259
assert 'name' in md
259260
assert md['keywords'] == ['sample', 'package']
260261
desc = md['description']
261262
assert desc.startswith('Once upon a time\nThere was')
263+
assert len(md['classifier']) == 2
262264

263265

264266
class LegacyDots(fixtures.DistInfoPkgWithDotLegacy, unittest.TestCase):

0 commit comments

Comments
 (0)