def test_filing_type_find_by_invalid_fee_code(session):
    """Assert that the filing type can not be found, with invalid code."""
    filing_type = factory_filing_type('OTADDX', 'Annual Report')
    session.add(filing_type)
    session.commit()

    b = FilingType.find_by_filing_type_code('OTANNX')
    assert b is None
def test_filing_type_find_by_code(session):
    """Assert that the filing type can be found by code."""
    filing_type = factory_filing_type('OTADDX', 'Annual Report')
    session.add(filing_type)
    session.commit()

    b = FilingType.find_by_filing_type_code('OTADDX')
    assert b is not None