def test_source_of_nested_function(self): def working(channel): pass send_source = gateway._source_of_function(working) expected = 'def working(channel):\n pass\n' assert send_source == expected
def test_source_of_nested_function(self): def working(channel): pass send_source = gateway._source_of_function(working).lstrip("\r\n") expected = "def working(channel):\n pass\n" assert send_source == expected