Created
April 8, 2016 15:42
-
-
Save rhizoome/4786e24276f45a401a0b939d3f6e9205 to your computer and use it in GitHub Desktop.
2.6 hypothesis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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