def test_can_not_find_manage_py(self):
     with self.assertRaises(sut.NotDjango):
         sut.find_path_to_file("/tmp/bad_project_no_files/example_app1/tests", "manage.py", sut.NotDjango)
 def test_can_not_find_vim_django_file(self):
     with self.assertRaises(sut.NoVimDjango):
         sut.find_path_to_file("/tmp/bad_project_no_files/example_app1/tests", ".vim-django", sut.NoVimDjango)
 def test_find_manage_py(self):
     return_value = sut.find_path_to_file("/tmp/project_app_only/example_app1/tests", "manage.py")
     self.assertEqual(return_value, "/tmp/project_app_only/manage.py")
 def test_can_not_find_manage_py(self):
     with self.assertRaises(sut.NotDjango):
         sut.find_path_to_file(
             "/tmp/bad_project_no_files/example_app1/tests", "manage.py",
             sut.NotDjango)
 def test_find_vim_django_file(self):
     return_value = sut.find_path_to_file("/tmp/project_app_only/example_app1/tests", ".vim-django")
     self.assertEqual(return_value, "/tmp/project_app_only/.vim-django")
 def test_can_not_find_vim_django_file(self):
     with self.assertRaises(sut.NoVimDjango):
         sut.find_path_to_file(
             "/tmp/bad_project_no_files/example_app1/tests", ".vim-django",
             sut.NoVimDjango)
 def test_find_manage_py(self):
     return_value = sut.find_path_to_file(
         "/tmp/project_app_only/example_app1/tests", "manage.py")
     self.assertEqual(return_value, "/tmp/project_app_only/manage.py")
 def test_can_not_find_vim_django_file(self):
     return_value = sut.find_path_to_file("/tmp/bad_project_no_files/example_app1/tests", ".vim-django")
     self.assertEqual(return_value, False)
 def test_find_vim_django_file(self):
     return_value = sut.find_path_to_file(
         "/tmp/project_app_only/example_app1/tests", ".vim-django")
     self.assertEqual(return_value, "/tmp/project_app_only/.vim-django")
 def test_can_not_find_manage_py(self):
     return_value = sut.find_path_to_file("/tmp/bad_project_no_files/example_app1/tests", "manage.py")
     self.assertEqual(return_value, False)
 def test_can_not_find_manage_py(self):
     return_value = sut.find_path_to_file("/tmp/bad_dirs_no_files/Level1/Level2/Level3", "manage.py")
     self.assertEqual(return_value, False)
 def test_find_manage_py(self):
     return_value = sut.find_path_to_file("/tmp/good_dirs_app_only/Level1/Level2/Level3", "manage.py")
     self.assertEqual(return_value, "/tmp/good_dirs_app_only/manage.py")
 def test_can_not_find_vim_django_file(self):
     return_value = sut.find_path_to_file("/tmp/bad_dirs_no_files/Level1/Level2/Level3", ".vim-django")
     self.assertEqual(return_value, False)
 def test_find_vim_django_file(self):
     return_value = sut.find_path_to_file("/tmp/good_dirs_app_only/Level1/Level2/Level3", ".vim-django")
     self.assertEqual(return_value, "/tmp/good_dirs_app_only/Level1/.vim-django")