コード例 #1
0
    def test_contact_exists(self):
        '''
        test to check if contact exists method works
        '''
        self.new_credentials.save_credentials()
        test_credentials = Credentials("john", "dribble.com", "y")
        test_credentials.save_credentials()

        credentials_exists = Credentials.credentials_exists("dribble.com")

        self.assertTrue(credentials_exists)
コード例 #2
0
ファイル: run.py プロジェクト: gichimux/password_locker_1.1
def find_credentials(name):
    return Credentials.credentials_exists(name)