def test_visa_form3():
    # Test check connection_form.
    form = VisaForm()
    form.connection_type = 'GPIB'
    form.address = '1'
    
    assert_equal(form.connection_dict(), 
                 {'connection_type': 'GPIB',
                  'address': '1',
                  'additionnal_mode': ''})
Beispiel #2
0
def test_visa_form3():
    # Test check connection_form.
    form = VisaForm()
    form.connection_type = 'GPIB'
    form.address = '1'

    assert_equal(form.connection_dict(), {
        'connection_type': 'GPIB',
        'address': '1',
        'additionnal_mode': ''
    })