def test_share_menu(self): accounts = accountsmanager.get_all_accounts() for account in accounts: shared_journal_entry = account.get_shared_journal_entry() share_menu = shared_journal_entry.get_share_menu( {'account': 'mock'}) self.assertIsNotNone(share_menu)
def test_get_description(self): accounts = accountsmanager.get_all_accounts() found_mock_account = False for account in accounts: if account.get_description() == ACCOUNT_NAME: found_mock_account = True break self.assertTrue(found_mock_account)
def test_get_all_accounts(self): accounts = accountsmanager.get_all_accounts() self.assertTrue(len(accounts) > 0)
def test_refresh_menu(self): accounts = accountsmanager.get_all_accounts() for account in accounts: shared_journal_entry = account.get_shared_journal_entry() refresh_menu = shared_journal_entry.get_refresh_menu() self.assertIsNotNone(refresh_menu)