def test_rst_header_levels(self):
        text = open(os.path.join(FILES_DIR, 'rst_header.txt')).read()
        expected = open(os.path.join(FILES_DIR, 'rst_header_expected.txt')).read()
        result = formatter(text, filter_name='restructuredtext')
        self.assertEqual(result, expected)
Ensures that the specified key can be expressed as both a string
dataset/ETHPy150Open bartTC/django-markup/src/django_markup/tests/test_filter.py/FormatterTestCase.test_rst_header_levels--crossover with--dataset/ETHPy150Open ntoll/p4p2p/test/dht/test_routingtable.py/TestRoutingTable.test_bucket_index_as_string_and_int