예제 #1
0
def test_q_to_class_venue():
    """Test for venue in class detection."""
    # Scientific journal
    assert 'venue' == q_to_class('Q2000010')

    # Proceedings
    assert 'venue' == q_to_class('Q27611219')
예제 #2
0
def test_q_to_class_publisher():
    """Test for publisher in class detection."""
    # University publisher
    assert 'publisher' == q_to_class('Q7894425')

    # Publisher
    assert 'publisher' == q_to_class('Q2188')
예제 #3
0
def test_q_to_class_organization():
    """Test for organization in class detection."""
    # Technical university
    assert 'organization' == q_to_class('Q1269766')