old_contents: import pytest
  
  import subprocess
  from os import curdir, makedirs, chdir
  from os.path import join, curdir, dirname
  from shlex import split as shlex_split
  
  from bumpversion import main
  
  def test_simple_replacement(tmpdir):
      tmpdir.join("VERSION").write("1.2.0")
      tmpdir.chdir()
      main(shlex_split("--old-version 1.2.0 --new-version 1.2.1 VERSION"))
      assert "1.2.1" == tmpdir.join("VERSION").read()
  
  def test_config_file(tmpdir):
      tmpdir.join("file1").write("0.9.34")
      tmpdir.join("mybumpconfig.cfg").write("""[bumpversion]
  old_version: 0.9.34
  new_version: 0.9.35
  files: file1""")
  
      tmpdir.chdir()
      main(shlex_split("--config-file mybumpconfig.cfg"))
  
      assert "0.9.35" == tmpdir.join("file1").read()
  
  
  
new_contents: import pytest
  
  import subprocess
  from os import curdir, makedirs, chdir
  from os.path import join, curdir, dirname
  from shlex import split as shlex_split
  
  from bumpversion import main
  
  def test_simple_replacement(tmpdir):
      tmpdir.join("VERSION").write("1.2.0")
      tmpdir.chdir()
      main(shlex_split("--old-version 1.2.0 --new-version 1.2.1 VERSION"))
      assert "1.2.1" == tmpdir.join("VERSION").read()
  
  def test_config_file(tmpdir):
      tmpdir.join("file1").write("0.9.34")
      tmpdir.join("mybumpconfig.cfg").write("""[bumpversion]
  old_version: 0.9.34
  new_version: 0.9.35
  files: file1""")
  
      tmpdir.chdir()
      main(shlex_split("--config-file mybumpconfig.cfg"))
  
      assert "0.9.35" == tmpdir.join("file1").read()
  
  def test_default_config_file(tmpdir):
      tmpdir.join("file2").write("0.10.2")
      tmpdir.join(".bumpversion.cfg").write("""[bumpversion]
  old_version: 0.10.2
  new_version: 0.10.3
  files: file2""")
  
      tmpdir.chdir()
      main([])
  
      assert "0.10.3" == tmpdir.join("file2").read()
  
  
subject: add test for default config file location