~oddbloke/pqm/unknown-branch-formats

« back to all changes in this revision

Viewing changes to pqm/ui/tests/test_twisted.py

  • Committer: Robert Collins
  • Date: 2006-07-26 06:47:58 UTC
  • Revision ID: robertc@robertcollins.net-20060726064758-cdfaf31ee002cbb4
Fix bug #37432 and escape the now running output in the web ui.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    def getResource(self):
42
42
        from pqm.ui.twistd import PQMInfo, QueueResource
43
43
        statusfile = file(self.queueSetup.queuedir + '/pqm/status', 'wt')
44
 
        statusfile.write("foo\nbar\nbaz\nquux\ntheta\n")
 
44
        statusfile.write("<foo\nbar\nbaz\nquux\ntheta\n")
45
45
        statusfile.close()
46
46
        pqminfo = PQMInfo([self.queueSetup.configFileName])
47
47
        resource = QueueResource(pqminfo)
106
106
"<p>Current time: ...</p>"
107
107
"<h2>Now playing...</h2>"
108
108
"<pre>"
109
 
"foo\n"
 
109
"&lt;foo\n"
110
110
"bar\n"
111
111
"baz\n"
112
112
"quux\n"