コード例 #1
0
 def __init__(self, irc):
     self.irc = irc
     self.name = self.__class__.__name__
     self.launchpad = LP.login_anonymously("pyhole", "production",
                                           utils.get_directory(self.name))
コード例 #2
0
ファイル: test_utils.py プロジェクト: msparks/pyhole
 def test_get_directory(self):
     new_dir = utils.get_home_directory() + "test_dir"
     self.assertFalse(os.path.exists(new_dir))
     utils.get_directory("test_dir")
     self.assertTrue(os.path.exists(new_dir))
     os.rmdir(new_dir)
コード例 #3
0
ファイル: launchpad.py プロジェクト: rconradharris/pyhole
 def __init__(self, irc, conf_file):
     self.irc = irc
     self.name = self.__class__.__name__
     self.launchpad = LP.login_anonymously("pyhole", "production",
             utils.get_directory(self.name))
コード例 #4
0
 def test_get_directory(self):
     new_dir = utils.get_home_directory() + "test_dir"
     self.assertFalse(os.path.exists(new_dir))
     utils.get_directory("test_dir")
     self.assertTrue(os.path.exists(new_dir))
     os.rmdir(new_dir)