old_contents: # -*- coding:utf-8 -*-
  
  from subprocess import check_call
  
  from pytest import raises
  
  from csft import __main__ as main
  
  
  def test_call():
      check_call(['python', '-m', 'csft', '.'])
  
  
  def test_main():
      main.main(argv=['.'])
  
      with raises(SystemExit):
          main.main(argv=[])
  
new_contents: # -*- coding:utf-8 -*-
  
  from subprocess import check_call
  
  from pytest import raises
  
  from csft import __main__ as main
  
  
  def test_call():
      check_call(['python', '-m', 'csft', '.'])
  
  
  def test_main():
      main.main(argv=['.'])
  
      with raises(SystemExit):
          main.main(argv=[])
  
      with raises(TypeError):
          main.main(argv=['path/is/not/a/directory'])
  
subject: Test when path not is a directory.