Package pyraf :: Module gki_psikern_tests
[hide private]
[frames] | no frames]

Module gki_psikern_tests

source code

GKI PyRAF-to-psikern tests

The first version of this will be under-representative of the total functionality, but tests will be added over time, as code issues are researched and addressed.

$Id: gki_psikern_tests.py 1463 2011-06-24 22:58:30Z stsci_embray $

Functions [hide private]
 
gki_single_prow_test()
Test a prow-plot of a single row from dev$pix to .ps
source code
 
gki_prow_1_append_test()
Test a prow-plot with 1 append (2 rows total, dev$pix) to .ps
source code
 
gki_prow_2_appends_test()
Test a prow-plot with 2 appends (3 rows total, dev$pix) to .ps
source code
 
gki_2_prows_no_append_test()
Test 2 prow calls with no append (2 dev$pix rows) to 2 .ps's
source code
 
gki_prow_to_different_devices_test()
Test 2 prow calls, each to different devices - one .ps written
source code
 
findAllTmpPskFiles()
Do a glob in the tmp dir (and cwd) looking for psikern files.
source code
 
getNewTmpPskFile(theBeforeList, title, preferred=None)
Do a glob in the tmp dir looking for psikern files, compare with the old list to find the new (expected) file.
source code
 
run_all() source code
Variables [hide private]
  diff = 'diff'
  __package__ = 'pyraf'

Imports: glob, os, sys, time, iraf


Function Details [hide private]

findAllTmpPskFiles()

source code 

Do a glob in the tmp dir (and cwd) looking for psikern files. Return the list.

getNewTmpPskFile(theBeforeList, title, preferred=None)

source code 

Do a glob in the tmp dir looking for psikern files, compare with the old list to find the new (expected) file. If preferred is None, then only a single new file is expected. If not None, then we assume that more than one new file may be present, and the arg is used as a search substring (regexp would be cooler) to choose which single file to return of the newly found set. Returns a single string filename.