Support for py.test

Change-Id: Id5ad1b6c99834653fca0846e72bf331dd2c8116d
Building tape type machinery -- common ttype_lookup routine

 - Working on ttype_lookup in cv_lib.py
 - Change cv prefix from 'cv' to 'cvv' so cv_lib does not match
 - Added test to detect duplicate functions
 - Eliminate duplicate functions (cv_popcart, cv_addcart,
   test_interpolation_{fail,ok}, test_addone, etc)

Change-Id: Icbebc6d6e72f0367726b18c708e314480822493d
Working on tape type lookup

 - fleshed out cv.cvv_ttype_lookup, cv_lib.ttype_lookup
 - new cv_lib.ttype_cart_lookup -- retrieve type and subtype numbers
   for a specific cartridge
 - new cv_lib.ttype_map_desc -- convert type and subtype number into
   a string media description
 - new util.lsp_parse -- take the output from an hsi 'ls -P' command
   and extract 1) the item type ('f' or 'd'), 2) the item name,
   3) the cartridge if any, and 4) the cos if any. These are returned
   as a tuple.

Change-Id: I3b354263246d663ea27b239c653f67e6bef00848
Updated test_duplicates to only look at hpssic files -- attempt 1

Change-Id: Iabf4cb1b7ddacdab7b4bffe2f876bd9653f0530c
Pep8 adjustments

Change-Id: I582576fcbc0632f13afcafcf62ebe9d3119ff3c9
Building tape type machinery -- common ttype_lookup routine

 - Working on ttype_lookup in cv_lib.py
 - Change cv prefix from 'cv' to 'cvv' so cv_lib does not match
 - Added test to detect duplicate functions
 - Eliminate duplicate functions (cv_popcart, cv_addcart,
   test_interpolation_{fail,ok}, test_addone, etc)

Change-Id: Icbebc6d6e72f0367726b18c708e314480822493d
Tape type lookups

 - Handle files on multiple tapes
 - Look up cartridge by physical volume id
 - In the DBI object, convert 'hpss' dbtype based on config
 - Support lookups from command line

Change-Id: Id5f1827f2585ec10e1adc3d64bb5525c6339bcb4
Working on tape type lookup

 - fleshed out cv.cvv_ttype_lookup, cv_lib.ttype_lookup
 - new cv_lib.ttype_cart_lookup -- retrieve type and subtype numbers
   for a specific cartridge
 - new cv_lib.ttype_map_desc -- convert type and subtype number into a
   string media description
 - new util.lsp_parse -- take the output from an hsi 'ls -P' command
   and extract 1) the item type ('f' or 'd'), 2) the item name, 3) the
   cartridge if any, and 4) the cos if any. These are returned as a
   tuple.

Change-Id: I3b354263246d663ea27b239c653f67e6bef00848
Add alter to support cv_ttype_add(), cv_ttype_drop()

 - Add dbi routines alter, describe
 - Tests for alter

Change-Id: Ic0d624b02286b25c51cad5b5368613bc96c33824
dbtype = {"hpss"|"crawler"}

 - Reworked DBI constructor so dbtype values are "hpss" and "crawler" and db2
   database names are in the config.

Change-Id: Ifb180475183e236f13158d4cc1d6add7ba8fc504