'Test validate with a file which does not exist (File).'

def test_validate_does_not_exist_file(self, os_mock):

    os_mock.path.isfile.return_value = False
    with pytest.raises(configexc.ValidationError):
        configtypes.File().validate('foobar')
