コード例 #1
0
 def test_classes_leading_B(self):
     expected, actual = testing.compare_files(
         'test/classes-leading.md',
         'test/classes-B-expected.md',
         get_paragraphs('classB'),
     )
     self.assertEqual(expected, actual)
コード例 #2
0
 def test_classes_code_block_B(self):
     expected, actual = testing.compare_files(
         'test/classes-code-block.md',
         'test/classes-B-code-block-expected.md',
         get_paragraphs('classB'),
     )
     self.assertEqual(expected, actual)
コード例 #3
0
 def test_classes_code_block_AB_language(self):
     expected, actual = testing.compare_files(
         'test/classes-code-block.md',
         'test/classes-AB-code-block-expected.md',
         get_paragraphs(['language-classA', 'language-classB']),
     )
     self.assertEqual(expected, actual)
コード例 #4
0
 def test_classes_trailing_line_AB(self):
     expected, actual = testing.compare_files(
         'test/classes-trailing-line.md',
         'test/classes-AB-expected.md',
         get_paragraphs(['classA', 'classB']),
     )
     self.assertEqual(expected, actual)
コード例 #5
0
 def test_classes_trailing_A(self):
     expected, actual = testing.compare_files(
         'test/classes-trailing.md',
         'test/classes-A-expected.md',
         get_paragraphs('classA'),
     )
     self.assertEqual(expected, actual)
コード例 #6
0
 def test_paragraph_classes_trailing_line(self):
   expected, actual = testing.compare_files(
       'test/classes-trailing-line.md',
       'test/classes-trailing-line.md',
       paragraphs)
   self.assertEqual(expected, actual)
コード例 #7
0
 def test_paragraph_classes_leading(self):
   expected, actual = testing.compare_files(
       'test/classes-leading.md',
       'test/classes-leading.md',
       paragraphs)
   self.assertEqual(expected, actual)
コード例 #8
0
 def test_paragraphs_spaced(self):
   expected, actual = testing.compare_files(
       'test/paragraphs-spaced.md',
       'test/paragraphs-spaced-expected.md',
       paragraphs)
   self.assertEqual(expected, actual)