def test_whitespace(self):
    'Test whitespace functionality'
    space = '                '
    text = '{space}Such a long whitespace'.format(space=space)
    expected = space
    got = get_leading_whitespace(text)
    assert (expected == got)
Test whitespace functionality
def test_whitespace(self):
    
    space = '                '
    text = '{space}Such a long whitespace'.format(space=space)
    expected = space
    got = get_leading_whitespace(text)
    assert (expected == got)