old_contents: import pytest
  
  @pytest.mark.parametrize("name, user, group, mode, contains", [
    ("/etc/apt/sources.list.d/docker.list", "root", "root", "0644", "https://download.docker.com/linux/ubuntu"),
    ("/git", "wicksy", "wicksy", "0755", "null"),
    ("/git/wicksy", "wicksy", "wicksy", "0755", "null"),
    ("/git/wicksy/configfiles", "wicksy", "wicksy", "0755", "null"),
    ("/mnt/buffalo", "root", "root", "0755", "null"),
    ("/mnt/samsung", "root", "root", "0755", "null"),
    ("/mnt/ds415plus", "root", "root", "0755", "null"),
    ("/etc/fstab", "root", "root", "0644", "# mount -t nfs ds415plus:"),
    ("/etc/ntp.conf", "root", "root", "0644", "server 0.pool.ntp.org"),
    ("/etc/ssh/sshd_config", "root", "root", "0644", "PermitRootLogin no"),
    ("/home/wicksy/vagrant", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/vagrant/Vagrantfile", "wicksy", "wicksy", "0777", "Vagrant.configure(2) do |config|"),
    ("/home/wicksy/.vim", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vimrc", "wicksy", "wicksy", "0777", "filetype plugin indent on"),
    ("/home/wicksy/.vim/syntax/jinja.vim", "wicksy", "wicksy", "0777", "Jinja templat"),
    ("/home/wicksy/.vim/syntax/puppet.vim", "wicksy", "wicksy", "0777", "puppet.vim"),
    ("/home/wicksy/.vim/syntax/dockerfile.vim", "wicksy", "wicksy", "0777", "dockerfile.vim"),
    ("/home/wicksy/.bashrc", "wicksy", "wicksy", "0777", "function _show_git_status"),
    ("/home/wicksy/.aws/config", "wicksy", "wicksy", "0644", "region = eu-west-1"),
    ("/home/wicksy/.config/font/config", "wicksy", "wicksy", "0644", "Terminus"),
    ("/home/wicksy/.config/i3/config", "wicksy", "wicksy", "0644", "xfce4-terminal"),
    ("/home/wicksy/.config/xfce4/terminal/terminalrc", "wicksy", "wicksy", "0644", "FontName=Terminus 9"),
    ("/home/wicksy/.ssh/config", "wicksy", "wicksy", "0777", "ServerAliveInterval 60"),
  ])
  
  def test_files(File, name, user, group, mode, contains):
    assert File(name).exists
    assert File(name).user == user
    assert File(name).group == group
    assert oct(File(name).mode) == mode
    if File(name).is_directory is not True:
      assert File(name).contains(contains)
    else:
      assert File(name).is_directory
new_contents: import pytest
  
  @pytest.mark.parametrize("name, user, group, mode, contains", [
    ("/etc/apt/sources.list.d/docker.list", "root", "root", "0644", "https://download.docker.com/linux/ubuntu"),
    ("/git", "wicksy", "wicksy", "0755", "null"),
    ("/git/wicksy", "wicksy", "wicksy", "0755", "null"),
    ("/git/wicksy/configfiles", "wicksy", "wicksy", "0755", "null"),
    ("/mnt/buffalo", "root", "root", "0755", "null"),
    ("/mnt/samsung", "root", "root", "0755", "null"),
    ("/mnt/ds415plus", "root", "root", "0755", "null"),
    ("/etc/fstab", "root", "root", "0644", "# mount -t nfs ds415plus:"),
    ("/etc/ntp.conf", "root", "root", "0644", "server 0.pool.ntp.org"),
    ("/etc/ssh/sshd_config", "root", "root", "0644", "PermitRootLogin no"),
    ("/home/wicksy/vagrant", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/vagrant/Vagrantfile", "wicksy", "wicksy", "0777", "Vagrant.configure(2) do |config|"),
    ("/home/wicksy/.vim", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vimrc", "wicksy", "wicksy", "0777", "filetype plugin indent on"),
    ("/home/wicksy/.vim/bundle/ansible-vim", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vim/bundle/dockerfile.vim", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vim/bundle/powerline", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vim/bundle/python-syntax", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vim/bundle/vim-ansible-yaml", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vim/bundle/vim-jinja2-syntax", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vim/bundle/vim-puppet", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.vim/bundle/Vundle.vim", "wicksy", "wicksy", "0755", "null"),
    ("/home/wicksy/.bashrc", "wicksy", "wicksy", "0777", "function _show_git_status"),
    ("/home/wicksy/.aws/config", "wicksy", "wicksy", "0644", "region = eu-west-1"),
    ("/home/wicksy/.config/font/config", "wicksy", "wicksy", "0644", "Terminus"),
    ("/home/wicksy/.config/i3/config", "wicksy", "wicksy", "0644", "xfce4-terminal"),
    ("/home/wicksy/.config/xfce4/terminal/terminalrc", "wicksy", "wicksy", "0644", "FontName=Terminus 9"),
    ("/home/wicksy/.ssh/config", "wicksy", "wicksy", "0777", "ServerAliveInterval 60"),
  ])
  
  def test_files(File, name, user, group, mode, contains):
    assert File(name).exists
    assert File(name).user == user
    assert File(name).group == group
    assert oct(File(name).mode) == mode
    if File(name).is_directory is not True:
      assert File(name).contains(contains)
    else:
      assert File(name).is_directory
subject: Update for vim plugin changes