Skip to content

Instantly share code, notes, and snippets.

@rhizoome
Created April 8, 2016 15:42
Show Gist options
  • Save rhizoome/4786e24276f45a401a0b939d3f6e9205 to your computer and use it in GitHub Desktop.
Save rhizoome/4786e24276f45a401a0b939d3f6e9205 to your computer and use it in GitHub Desktop.
2.6 hypothesis
"""Testing dependency graphs"""
import random
import sys
from . import Command, FunctionCommand, test
if not sys.version_info < (2, 7):
from hypothesis import strategies as st
from hypothesis import given
if sys.version_info < (2, 7): # pragma: no cover
import mock
given = mock.MagicMock() # noqa
example = mock.MagicMock() # noqa
st = mock.MagicMock() # noqa
@test.hypothesis_min_ver
@given(....)
def test_graph_basic(tree, rnd):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment