Add checks to test_gen_key_input().

feature/documentation-builds-html
Isis Lovecruft 2013-04-10 21:45:36 +00:00
parent a873c1172a
commit 0fcf9676b3
1 changed files with 2 additions and 1 deletions

View File

@ -267,7 +267,8 @@ class GPGTestCase(unittest.TestCase):
def test_gen_key_input(self):
"""Test that GnuPG batch file creation is successful."""
key_input = self.generate_key_input("Francisco Ferrer", "an.ok")
self.assertIsNotNone(key_input)
self.assertGreater(key_input.find('Francisco Ferrer'), 0)
def test_rsa_key_generation(self):
"""