]>
crepu.dev Git - config.git/blob - djavu-asus/elpa/elpy-20230803.1455/elpy/tests/test_support.py
1 """Tests for elpy.tests.support. Yep, we test test code."""
5 from elpy
.tests
.support
import source_and_offset
8 class TestSourceAndOffset(unittest
.TestCase
):
9 def test_should_return_source_and_offset(self
):
10 self
.assertEqual(source_and_offset("hello, _|_world"),
13 def test_should_handle_beginning_of_string(self
):
14 self
.assertEqual(source_and_offset("_|_hello, world"),
17 def test_should_handle_end_of_string(self
):
18 self
.assertEqual(source_and_offset("hello, world_|_"),