testing.unit.test_gpginterface module
py-unit tests for GnuPG
COPYRIGHT:
Copyright (C) 2001 Frank J. Tobin, ftobin@neverending.org
LICENSE:
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
or see http://www.gnu.org/copyleft/lesser.html
-
class testing.unit.test_gpginterface.BasicTest(methodName=None)[source]
Bases: TestCase
an initializer superclass
-
__init__(methodName=None)[source]
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
class testing.unit.test_gpginterface.GnuPGTests(methodName=None)[source]
Bases: BasicTest
Tests for GnuPG class
-
__init__(methodName=None)[source]
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
do_attach_fh_operation(args, stdin, stdout, passphrase=None)[source]
-
do_create_fh_operation(args, input, passphrase=None)[source]
-
test_attach_fhs()[source]
Do GnuPG operations using the attach_fhs feature
-
test_create_fhs_solely()[source]
Do GnuPG operations using solely the create_fhs feature
-
class testing.unit.test_gpginterface.OptionsTests(methodName=None)[source]
Bases: BasicTest
Tests for Options class
-
__init__(methodName=None)[source]
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
option_to_arg(option)[source]
-
reset_options()[source]
-
test_boolean_args()[source]
test Options boolean options that they generate
proper arguments
-
test_list_args()[source]
test Options string-taking options that they generate
proper arguments
-
test_string_args()[source]
test Options string-taking options that they generate
proper arguments
-
class testing.unit.test_gpginterface.PipesTests(methodName='runTest')[source]
Bases: TestCase
Tests for Pipes class
-
test_constructor()[source]
-
testing.unit.test_gpginterface.fh_cmp(f1, f2, bufsize=8192)[source]