forked from VimPlug/jedi
testing again
This commit is contained in:
@@ -123,6 +123,7 @@ class TestRegression(unittest.TestCase):
|
|||||||
s4 = 'abs(zip(), , set,'
|
s4 = 'abs(zip(), , set,'
|
||||||
s5 = "abs(1,\nif 2:\n def a():"
|
s5 = "abs(1,\nif 2:\n def a():"
|
||||||
s6 = "str().center("
|
s6 = "str().center("
|
||||||
|
s7 = "str().upper().center("
|
||||||
|
|
||||||
assert check(self.get_in_function_call(s, (1, 4)), 'abs', 0)
|
assert check(self.get_in_function_call(s, (1, 4)), 'abs', 0)
|
||||||
assert check(self.get_in_function_call(s, (1, 6)), 'abs', 1)
|
assert check(self.get_in_function_call(s, (1, 6)), 'abs', 1)
|
||||||
@@ -149,5 +150,7 @@ class TestRegression(unittest.TestCase):
|
|||||||
assert check(self.get_in_function_call(s6, (1, 13)), 'center', 0)
|
assert check(self.get_in_function_call(s6, (1, 13)), 'center', 0)
|
||||||
assert check(self.get_in_function_call(s6, (1, 4)), 'str', 0)
|
assert check(self.get_in_function_call(s6, (1, 4)), 'str', 0)
|
||||||
|
|
||||||
|
assert check(self.get_in_function_call(s7), 'center', 0)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user