def test_does_not_detect_other_extensions(fakefile, filename): fakefile.name = filename handler = CodeFileHandler() assert handler.detect(fakefile) is False
def test_detect_common_extensions(fakefile, filename): fakefile.name = filename handler = CodeFileHandler() assert handler.detect(fakefile) is True