~james-w/udd/management-commands

« back to all changes in this revision

Viewing changes to udd/tests/test_categorise_failures.py

  • Committer: James Westby
  • Date: 2011-12-13 21:09:23 UTC
  • mfrom: (557.1.1 drop_email_failures)
  • Revision ID: james.westby@canonical.com-20111213210923-tfrirlx3xbwmi70u
Merged drop_email_failures into management-commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from udd import tests
 
2
 
 
3
from udd.scripts import categorise_failures
 
4
 
 
5
 
 
6
class TestCategoriseFailures(tests.TestCaseWithConfig):
 
7
 
 
8
    def test_empty(self):
 
9
        categorise_failures.main()
 
10
        # A lock has been created under the test hierarchy
 
11
        self.assertTestPathExists('locks/scripts/categorise_failures')
 
12
        # The www hierarchy has a few invariants
 
13
        self.assertTestPathExists('www/index.html')
 
14
        self.assertTestPathExists('www/status/index.html')
 
15
        self.assertTestPathExists('www/status/main.html')
 
16
        # static files has been properly copied
 
17
        self.assertTestPathExists('www/status/jquery.flot.js')
 
18
        self.assertTestPathExists('www/status/jquery.min.js')