Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/c/a/cablemap-HEAD/cablemap.core/tests/test_reader_signers.py   cablemap(Download)
from nose.tools import eq_
from cablemap.core import cable_by_id
from cablemap.core.reader import parse_signers
 
_TEST_DATA = (
    def check(expected, content, c14n):
        if not isinstance(expected, tuple):
            expected = (expected,)
        eq_(expected, tuple(parse_signers(content, c14n)))
    for testcase in _TEST_DATA:
    def check(expected, cable_id, c14n):
        cable = cable_by_id(cable_id)
        if not isinstance(expected, tuple):
            expected = (expected,)
        eq_(expected, tuple(parse_signers(cable.content, c14n)))