Permalink
Browse files

Minor clean-up

  • Loading branch information...
1 parent 710dff5 commit a676c134f2731336b356b8d84f6d23078e161117 @bipster committed Mar 7, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −7 chat/tests.py
View
@@ -1,10 +1,3 @@
-"""
-This file demonstrates two different styles of tests (one doctest and one
-unittest). These will both pass when you run "manage.py test".
-
-Replace these with more appropriate tests for your application.
-"""
-
from django.test import TestCase
from selenium import webdriver
import re
@@ -21,6 +14,7 @@ def test_jasmine_suite(self):
# Extracting the number of JavaScript test-failures
failures_regex = re.compile(r"\d+ specs, (\d+) failures in \d+[.]\d+s")
num_failures = int(failures_regex.search(element.text).group(1))
+
assert num_failures == 0
def setUp(self):

0 comments on commit a676c13

Please sign in to comment.