Commits

John Chandler  committed 2072ef4

Added initial Twill tests for band pages

  • Participants
  • Parent commits 48b008f

Comments (0)

Files changed (1)

File fluidocalypse/tests/twill_tests/functional_tests.twill

 # ############################################################
 
 # test missing genre
-go http://127.0.0.1:8000/genre/progressive_vegetarian_grindcore/
+go http://127.0.0.1:8000/genre/progressive_vegetarian_grindcore
 code 404
 
 # test with trailing slash
 find '<div id="related_genres">'
 find '<h3 class="heading">Related Genres</h3>'
 find '<span style="font-size: [.0-9]+em; white-space: nowrap; padding: [.0-9]+em;"><a href="/genre/avant_garde_music">Avant-garde music</a></span>'
+
+# ############################################################
+# test calls to band pages
+# ############################################################
+
+# test missing band
+go http://127.0.0.1:8000/band/hgshfgahgsfhaghsf
+code 404
+
+## test with trailing slash - NOTE: broken, need to fix
+#go http://127.0.0.1:8000/band/Napalm%20Death/
+#code 200
+
+# test without trailing slash
+go http://127.0.0.1:8000/band/Napalm%20Death
+code 200