def test_include_end_before(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-before=abl', 'fake.md'), '') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-before=xxx', 'fake.md'), '') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-before=bak', 'fake.md'), 'able')
def test_include_start_after(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-after=bak', 'fake.md'), 'charlie') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-after=cha', 'fake.md'), '') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-after=xxx', 'fake.md'), '')
def test_include_end_at(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-at=abl', 'fake.md'), 'able') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-at=bak', 'fake.md'), '\n'.join(['able', 'baker'])) self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-at=xxx', 'fake.md'), '')
def test_include_end_before(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-before=abl', 'fake.md'), '') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-before=xxx', 'fake.md'), '') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-before=bak', 'fake.md'), 'able')
def test_include_start_at(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-at=abl', 'fake.md'), '\n'.join(['able', 'baker', 'charlie'])) self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-at=bak', 'fake.md'), '\n'.join(['baker', 'charlie'])) self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-at=xxx', 'fake.md'), '')
def test_include_start_after(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-after=bak', 'fake.md'), 'charlie') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-after=cha', 'fake.md'), '') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-after=xxx', 'fake.md'), '')
def test_include_end_at(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-at=abl', 'fake.md'), 'able') self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-at=bak', 'fake.md'), '\n'.join(['able', 'baker'])) self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'end-at=xxx', 'fake.md'), '')
def test_include_start_at(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-at=abl', 'fake.md'), '\n'.join(['able', 'baker', 'charlie'])) self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-at=bak', 'fake.md'), '\n'.join(['baker', 'charlie'])) self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, 'start-at=xxx', 'fake.md'), '')
def test_include_no_params(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, '', 'fake.md'), '\n'.join(['able', 'baker', 'charlie']))
def test_include_no_params(self): self.assertEquals( markdown_to_html_utils.choose_include_text(ABC, '', 'fake.md'), '\n'.join(['able', 'baker', 'charlie']))