コード例 #1
0
def test_cleandata_removes_square_brackets():
    before = """ethnicity = [[Latins]]"""
    after = get_data.clean_data(before).strip()
    goal = """ethnicity = Latins"""
    assert_equals(after, goal)
コード例 #2
0
def test_cleandata_removes_html_tags():
    before = """agency = Roman schools<ref>{{cite encyclopedia}}</ref>"""
    after = get_data.clean_data(before).strip()
    goal = """agency = Roman schools"""
    assert_equals(after, goal)