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