예제 #1
0
def test_name_empty_string():
    '''
        confirm that False is returned if a 0 length strin is input
        '''
    with patch.object(RunSnpDetection, "__init__", lambda x: None):
        detect_obj = RunSnpDetection()
        with pytest.raises(SystemExit):
            detect_obj._name_exists('')
예제 #2
0
def test_name_non_string():
    '''
        if a non string input is used return false
        '''
    with patch.object(RunSnpDetection, "__init__", lambda x: None):
        detect_obj = RunSnpDetection()
        with pytest.raises(SystemExit):
            detect_obj._name_exists(9)
예제 #3
0
def test_name_string():
    '''
        assert true when the input is a string > len 0
        '''
    with patch.object(RunSnpDetection, "__init__", lambda x: None):
        detect_obj = RunSnpDetection()
        assert detect_obj._name_exists('somestring')