Esempio n. 1
0
    def test_find_profile_by_account(self):
        '''
        create test to find profile by account
        '''
        self.new_profile.save_profile()
        test_profile = Profile("Test", "userpass")  # new test profile
        test_profile.save_profile()
        found_profile = Profile.find_profile_by_account("Test")

        self.assertEqual(found_profile.account, test_profile.account)
Esempio n. 2
0
def find_profile(profile):
    ''' Method that finds a profile by account name '''
    return Profile.find_profile_by_account(profile)