Ejemplo n.º 1
0
def test_find_by_event_by_state():
    row = FundingRaised.find_by({'state': 'CA'})
    keys = [
        'permalink', 'company_name', 'number_employees', 'category', 'city',
        'state', 'funded_date', 'raised_amount', 'raised_currency', 'round'
    ]
    values = [
        'digg', 'Digg', '60', 'web', 'San Francisco', 'CA', '1-Dec-06',
        '8500000', 'USD', 'b'
    ]
    for i in range(0, len(keys)):
        assert row[keys[i]] == values[i]
Ejemplo n.º 2
0
def test_find_by_event_by_company_name():
    row = FundingRaised.find_by({'company_name': 'Facebook'})
    keys = [
        'permalink', 'company_name', 'number_employees', 'category', 'city',
        'state', 'funded_date', 'raised_amount', 'raised_currency', 'round'
    ]
    values = [
        'facebook', 'Facebook', '450', 'web', 'Palo Alto', 'CA', '1-Sep-04',
        '500000', 'USD', 'angel'
    ]
    for i in range(0, len(keys)):
        assert row[keys[i]] == values[i]