def test_noop():
 with pytest.raises(DocoptExit):
  main([])
 with pytest.raises(DocoptExit):
  main(['foobar'])

def test_noop ( ) : with pytest . raises ( DocoptExit ) : main ( [ ] ) with pytest . raises ( DocoptExit ) : main ( [ 'foobar' ] )
ensure docopt exit .