def test_dont_detect_RST_extension(): fakefile.name = 'file.txt' handler = RstHandler() assert handler.detect(fakefile) is False
def test_detect_docx_extension(): fakefile.name = 'file.rst' handler = RstHandler() assert handler.detect(fakefile) is True