Example #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'
Example #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'
Example #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'