Exemple #1
0
    def test_find_by_site_name(self):
        '''

        '''
        self.new_details.save_details()
        facebook = Details('Ben','Facebook','Benny','test01')
        facebook.save_details()
        details_exists = Details.find_by_site_name('Facebook')
        self.assertEqual(details_exists,facebook)
Exemple #2
0
    def test_copy_details(self):
        '''

        '''
        self.new_details.save_details()
        facebook = Details('Ben','Facebook','Benny','test01')
        facebook.save_details()
        find_details = None
        for details in Details.user_details_list:
            find_details=Details.find_by_site_name(details.site)
            return pyperclip.copy(find_details.password)
        Details.copy_details(self.new_details.site)
        self.assertEqual('test01',pyperclip.paste())
        print(pyperclip.paste())