Example #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')
Example #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')
Example #3
0
def test_q_to_class_organization():
    """Test for organization in class detection."""
    # Technical university
    assert 'organization' == q_to_class('Q1269766')