Exemplo n.º 1
0
    def test_detail_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the detail.
        '''

        self.new_detail.save_detail()
        test_detail = Detail("Test", "user", "2222222222",
                               "*****@*****.**")  # new detail
        test_detail.save_detail()

        detail_exists = Detail.detail_exist("2222222222")
        self.assertTrue(detail_exists)
Exemplo n.º 2
0
Arquivo: run.py Projeto: hukish/Pk
def check_existing_details(password):
    """
    Function that check if a detail exists with that password and return a Boolean
    """
    return Detail.detail_exist(password)