def test_get_school_data_for_user_single(self, mock_get_accounts): mock_get_accounts.return_value = self.school_accounts result = get_school_data_for_user(self.canvas_user_id, self.school_sis_account_id) self.assertEqual(result['id'], self.school_sis_account_id)
def test_get_school_data_for_user(self, mock_get_accounts): mock_get_accounts.return_value = self.school_accounts result = get_school_data_for_user(self.canvas_user_id) for account in result: self.assertIn(account['id'], self.school_sis_account_ids)