r46978 - fix some twistedchecker

hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Thu, 10 Mar 2016 19:27:49 -0700 (MST)
Newsgroups gmane.comp.python.twisted.commits
Message-ID <[email protected]>
Author: hawkowl
Date: Thu Mar 10 19:27:45 2016
New Revision: 46978

Modified:
   branches/manhole-hardcodedkey-8229/twisted/conch/ssh/keys.py
   branches/manhole-hardcodedkey-8229/twisted/conch/test/test_keys.py

Log:
fix some twistedchecker

Modified: branches/manhole-hardcodedkey-8229/twisted/conch/ssh/keys.py
==============================================================================
--- branches/manhole-hardcodedkey-8229/twisted/conch/ssh/keys.py	(original)
+++ branches/manhole-hardcodedkey-8229/twisted/conch/ssh/keys.py	Thu Mar 10 19:27:45 2016
@@ -1249,6 +1249,8 @@
     @param keySize: The size of the key, if it needs to be generated.
     @type keySize: L{int}
 
+    @param _appdirs: Private mocking function for testing, do not use.
+
     @returns: A persistent key.
     @rtype: L{Key}
     """

Modified: branches/manhole-hardcodedkey-8229/twisted/conch/test/test_keys.py
==============================================================================
--- branches/manhole-hardcodedkey-8229/twisted/conch/test/test_keys.py	(original)
+++ branches/manhole-hardcodedkey-8229/twisted/conch/test/test_keys.py	Thu Mar 10 19:27:45 2016
@@ -1196,9 +1196,11 @@
 
         class FakeAppdirs(object):
             @classmethod
-            def user_data_dir(cls, maker, product):
+            def dataDir(cls, maker, product):
                 return tempDir
 
+            user_data_dir = _dataDir
+
         key = keys._getPersistentRSAKey(_appdirs=FakeAppdirs)
 
         self.assertEqual(key.size(), 4096)