def testC(self):
        lexer = CompletionLexer(CLexer())
        self.assertEquals(lexer.get_context("foo.bar"), [ "foo", "bar" ])
        self.assertEquals(lexer.get_context("foo->bar"), [ "foo", "bar" ])

        lexer = CompletionLexer(CppLexer())
        self.assertEquals(lexer.get_context("Foo::Bar"), [ "Foo", "Bar" ])
test that new types can be added to the ask system at runtime
dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/tests/test_completion_lexer.py/TestCompletionLexer.testC--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/assumptions/tests/test_query.py/test_type_extensibility