Exemplo n.º 1
0
    def test_find_details(self):
        """
        test to check if we can find a detail entry by account name and display the details.
        """
        self.new_detail.save_details()
        test_detail = Details("Twitter", "georgekilewa", "GeO%$#85Hj")
        test_detail.save_details()

        the_detail = Details.find_details("Twitter")

        self.assertEqual(the_detail.account, test_detail.account)
Exemplo n.º 2
0
def find_detail(account):
    """
    Function that finds a details by an account name and returns the details that belong to that account
    """
    return Details.find_details(account)