コード例 #1
0
ファイル: test_bohra.py プロジェクト: tauqeer9/bohra
def test_notfour_isolates():
    '''
        return false when less than 4 rows are present
        '''
    with patch.object(RunSnpDetection, "__init__", lambda x: None):
        detect_obj = RunSnpDetection()
        tab = pandas.DataFrame({'A': [1, 2, 3]})
        assert detect_obj.min_four_samples(tab)
コード例 #2
0
ファイル: test_bohra.py プロジェクト: tauqeer9/bohra
def test_four_isolates():
    '''
        confirm that min of 4 rows are present
        '''
    with patch.object(RunSnpDetection, "__init__", lambda x: None):
        detect_obj = RunSnpDetection()
        tab = pandas.DataFrame({'A': [1, 2, 3, 4]})
        assert detect_obj.min_four_samples(tab) == False