From 07dbebe277dd1502865986afbc80e7e5b41c04f4 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 29 Dec 2012 23:38:47 +0100 Subject: [PATCH] test for problem with points in completion --- test/regression.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/regression.py b/test/regression.py index e619d706..bd00a308 100755 --- a/test/regression.py +++ b/test/regression.py @@ -308,6 +308,14 @@ class TestRegression(Base): assert len(g) == 1 assert g[0].start_pos != (0, 0) + def test_points_in_completion(self): + """At some point, points were inserted into the completions, this + caused problems, sometimes. + """ + c = self.complete("if IndentationErr") + assert c[0].word == 'IndentationError' + self.assertEqual(c[0].complete, 'or') + class TestFeature(Base): def test_full_name(self):