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('')
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)
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')