~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:15 UTC
  • mfrom: (555.1.1 drop-cricket)
  • mto: This revision was merged to the branch mainline in revision 560.
  • Revision ID: james.westby@canonical.com-20111213210915-mfx5hktfoivb94hk
Merge trunk.

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')