コード例 #1
0
    def test_copy_password(self):
        '''
        Testing if the copy password function works
        '''
        self.new_data.add_password()
        UsersInfo.copy_password(1, 1)

        self.assertEqual(self.new_data.web_pass, pyperclip.paste())
コード例 #2
0
ファイル: run.py プロジェクト: dicksonkariuki/Password-locker
def copy_password(number, count):
    '''
    Function that copies the password to the clipboard
    '''
    UsersInfo.copy_password(number, count)
コード例 #3
0
 def test_copy_password(self):
     '''
     Testing if the copy password function works
     '''
     self.new_data.add_password()
     UsersInfo.copy_password(1, 1)