def METHOD_NAME(self):
    with patch('requests.sessions.Session.post', unittest.mock.Mock(side_effect = lambda url, data, timeout, files=None: mock_netchop_netmhcstabpan(
        data,
        files,
        self.test_data_directory,
        'net_chop.fail.html'
       ))), self.assertRaises(Exception) as context:
        output_file = tempfile.NamedTemporaryFile()
        NetChop(
            os.path.join(self.test_data_directory, 'Test_filtered.tsv'),
            self.test_fasta,
            output_file.name,
        ).execute()
    self.assertTrue('NetChop encountered an error during processing.' in str(context.exception))