Ejemplo n.º 1
0
def test_c14n_malformed_ids():
    def check(incorrect_id, correct_id):
        eq_(canonicalize_id(correct_id), canonicalize_id(incorrect_id))
    for incorrect_id, correct_id in MALFORMED_CABLE_IDS.iteritems():
        yield check, incorrect_id, correct_id
Ejemplo n.º 2
0
def _get_test_cases():
    return MALFORMED_CABLE_IDS.iteritems()
Ejemplo n.º 3
0
def test_c14n_malformed_ids():
    def check(incorrect_id, correct_id):
        eq_(canonicalize_id(correct_id), canonicalize_id(incorrect_id))

    for incorrect_id, correct_id in MALFORMED_CABLE_IDS.iteritems():
        yield check, incorrect_id, correct_id
Ejemplo n.º 4
0
def _get_test_cases():
    return MALFORMED_CABLE_IDS.iteritems()