def METHOD_NAME(self, testdata, datapath):
    """
    Tests the is_scardec function.
    """
    good_files = [testdata['test.scardec'],
                  testdata['test2.scardec']]
    bad_files = [
        datapath.parent / "test_core.py",
        datapath.parent / "__init__.py"]
    for filename in good_files:
        assert _is_scardec(filename)
    for filename in bad_files:
        assert not _is_scardec(filename)