def METHOD_NAME(self):
    """
    Test scan_for_tests with makecheck suite via Makefile.am
    """
    reqs = buildreq.Requirements("")
    conf = config.Config("")
    tcontent = tarball.Content("", "", "", [], conf, "")
    listdir_backup = os.listdir
    check.os.listdir = mock_generator(['Makefile.am'])
    m_open = mock_open()
    with patch(self.open_name, m_open, create=True):
        conf.default_pattern = "configure_ac"
        check.scan_for_tests('pkgdir', conf, reqs, tcontent)
    check.os.listdir = listdir_backup
    self.assertEqual(check.tests_config,
                     'make %{?_smp_mflags} check')