Exemplo n.º 1
0
 def test_get_offset_when_none(self):
     lines = [
         "def method1(self):",
         "    return 2",
     ]
     future_lines = [
         "def method1(self):",
         "    return 2",
     ]
     assert get_offset(lines, future_lines) == ''
Exemplo n.º 2
0
 def test_get_offset_when_none(self):
     lines = [
         "def method1(self):",
         "    return 2",
     ]
     future_lines = [
         "def method1(self):",
         "    return 2",
     ]
     assert get_offset(lines, future_lines) == ''
 def test_get_offset_when_some(self):
     lines = ["", "def method1(self):", "    return 2"]
     future_lines = ["    ", "    def method1(self):", "        return 2"]
     assert get_offset(lines, future_lines) == "    "