Exemplo n.º 1
0
 def get_extra_state(self):
     # If this class has changed not much choice but to
     # re-index all texts.
     return change_tracker.function_source(TextIndexer)
Exemplo n.º 2
0
 def get_extra_state(self):
     # If this class has changed not much choice but to 
     # re-index all texts.
     return change_tracker.function_source(TextIndexer)
def test_function_source():
    def bar():
        pass
        
    assert function_source(bar) == '    def bar():\n        pass\n'
Exemplo n.º 4
0
def test_function_source():
    def bar():
        pass

    assert function_source(bar) == '    def bar():\n        pass\n'