class DjangoCompletion < Formula desc "Bash completion for Django" homepage "https://github.com/django/django" url "https://github.com/django/django/archive/2.1.7.tar.gz" sha256 "c939a1c011c2079a3d5d67833a973a0e50602cd4407b24b998e6d232ddd8ae28" head "https://github.com/django/django.git" bottle :unneeded def install bash_completion.install "extras/django_bash_completion" => "django" end test do assert_match "-F _django_completion", shell_output("source #{bash_completion}/django && complete -p django-admin.py") end end