Skip to content

Commit

Permalink
python: Check draft version in hpackcheck.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Jun 30, 2014
1 parent 2f91a7f commit 499af94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/hpackcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,11 @@ def testsuite(testdata):
sys.stderr.write('{}: '.format(filename))
with open(filename) as f:
input = f.read()

testdata = json.loads(input)

if 'draft' not in testdata or testdata['draft'] != 8:
sys.stderr.write('Not supported\n')
continue

testsuite(json.loads(input))

0 comments on commit 499af94

Please sign in to comment.