コード例 #1
0
    def test_data_exists(self):
        '''
        Testing to check if the function for checking data works well
        '''
        self.new_data.add_password()
        test_data = UsersInfo(1, 1, "gmail.com", "kiriu")
        test_data.add_password()

        data_exists = UsersInfo.existing_data(1)
        self.assertTrue(data_exists)
コード例 #2
0
ファイル: run.py プロジェクト: dicksonkariuki/Password-locker
def data_existing(data):
    '''
    Function that checks if user data exists
    '''
    return UsersInfo.existing_data(data)