~vcs-imports/shotfactory/trunk

« back to all changes in this revision

Viewing changes to shotfactory03/gui/__init__.py

  • Committer: johann
  • Date: 2007-05-21 18:10:08 UTC
  • Revision ID: vcs-imports@canonical.com-20070521181008-u6thzk83djf4y3p7
Merging cleanup from shotfactory-django branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
Base class for GUI-specific wrappers.
21
21
"""
22
22
 
23
 
__revision__ = '$Rev: 1176 $'
24
 
__date__ = '$Date: 2007-03-19 09:57:31 +0000 (Mon, 19 Mar 2007) $'
 
23
__revision__ = '$Rev: 1254 $'
 
24
__date__ = '$Date: 2007-05-21 19:10:08 +0100 (Mon, 21 May 2007) $'
25
25
__author__ = '$Author: johann $'
26
26
 
27
 
import time, os
 
27
import time
 
28
import os
28
29
from array import array
29
30
from shotfactory03.image import hashmatch, png
30
31
 
145
146
        filename = self.page_filename(1)
146
147
        self.screenshot(filename)
147
148
        self.check_screenshot(filename)
148
 
        magic, width, height, maxval = hashmatch.read_ppm_header(open(filename, 'rb'))
 
149
        magic, width, height, maxval = hashmatch.read_ppm_header(
 
150
            open(filename, 'rb'))
149
151
        assert magic == 'P6'
150
152
        assert maxval == 255
151
153