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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/c/a/cablemap-HEAD/cablemap.core/tests/test_reader_references.py   cablemap(Download)
"""
from nose.tools import eq_
from cablemap.core.reader import parse_references as reader_parse_references
 
def parse_references(content, year, reference_id=None):
    res = []
    for ref in reader_parse_references(content, year, reference_id):

src/c/a/cablemap-HEAD/cablemap.core/tests/test_reader_references_ng.py   cablemap(Download)
"""
from nose.tools import eq_
from cablemap.core.reader import parse_references
from cablemap.core.models import Reference
from cablemap.core import constants
    def check(content, year, expected):
        eq_(expected, parse_references(content, year))
    for content, year, expected in _TEST_DATA:
        yield check, content, year, expected