def METHOD_NAME(self, mock_line_list):
    """test for parsing plink output"""
    chromosomes = [0, 34, 110, 89, 123, 23, 2]
    species = AttributeSetter(
        {"name": "S1", "chromosomes": AttributeSetter({"chromosomes": chromosomes})})
    fake_file = """0 AACCAT T98.6  0.89\n2  AATA  B45  0.3\n121  ACG  B56.4 NA"""
    mock_line_list.side_effect = [["0", "AACCAT", "T98.6", "0.89"], [
        "2", "AATA", "B45", "0.3"], ["121", "ACG", "B56.4", "NA"]]
    with mock.patch("builtins.open", mock.mock_open(read_data=fake_file)) as mock_open:
        parse_results = parse_plink_output(
            output_filename="P1_file", species=species)
        mock_open.assert_called_once_with(
            "/home/user/data/P1_file.qassoc", "rb")
        expected = (2, {'AACCAT': 0.89, 'AATA': 0.3})
        self.assertEqual(parse_results, expected)