class DjangoCompletion < Formula desc "Bash completion for Django" homepage "https://github.com/django/django" url "https://github.com/django/django/archive/2.0.5.tar.gz" sha256 "4039459132ec23b3a3eedba941c4f16e17635e8f15a6ed847fdab8a67e225b9b" 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