'Test if validate expands the environment vars correctly.'

def test_validate_expandvars(self, klass, os_mock):

    os_mock.path.isfile.side_effect = (lambda path: (path == '/home/foo/foobar'))
    os_mock.path.isabs.return_value = True
    klass().validate('$HOME/foobar')
