예제 #1
0
def test_check_system_name2():
    """ Forced string input but is integer """
    with pytest.raises(AssertionError) as err_info:
        PyDampCheck.check_system_name(system_fail_2)
    assert str(err_info.value) == 'Input file requires character input'
예제 #2
0
def test_check_system_name3():
    """ Empty Input """
    with pytest.raises(AssertionError) as err_info:
        PyDampCheck.check_system_name(system_fail_3)
    assert str(err_info.value) == 'Input file requires system name'
예제 #3
0
def test_check_system_name1():
    """ Non - String Input """
    with pytest.raises(AssertionError) as err_info:
        PyDampCheck.check_system_name(system_fail_1)
    assert str(err_info.value) == 'Input file requires character input'