desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
'Returns balance'
| def get_balance(self):
| bal = self.balance
transactions = Transaction.objects.filter(account=self.id)
for transaction in transactions:
bal += transaction.get_relative_value()
return bal
|
'Returns absolute URL'
| def get_absolute_url(self):
| try:
return reverse('finance_account_view', args=[self.id])
except Exception:
return ''
|
'Returns absolute URL'
| def get_absolute_url(self):
| try:
return reverse('finance_equity_view', args=[self.id])
except Exception:
return ''
|
'Returns absolute URL'
| def get_absolute_url(self):
| try:
return reverse('finance_liability_view', args=[self.id])
except Exception:
return ''
|
'Returns True if self is receivable relative to self.account'
| def is_receivable(self):
| return (self.account.owner == self.target)
|
'Get Relative Value'
| def get_relative_value(self):
| if self.trash:
return 0
elif (self.account.owner_id == self.source_id):
return (- abs(self.value))
elif (self.account.owner_id == self.target_id):
return abs(self.value)
else:
return 0
|
'Returns absolute URL'
| def get_absolute_url(self):
| try:
return reverse('finance_transaction_view', args=[self.id])
except Exception:
return ''
|
'Add currencies to financial items'
| def forwards(self, orm):
| try:
currency = orm['finance.Currency'].objects.get(is_default=True)
except:
currency = orm['finance.Currency'].objects.create()
currency.code = 'USD'
currency.name = 'USD United States of America, Dollars'
currency.symbol = u'$'
currency.is_def... |
'Test category model'
| def test_model_category(self):
| obj = Category(name='test')
obj.save()
self.assertEquals('test', obj.name)
self.assertNotEquals(obj.id, None)
obj.delete()
|
'Test tax model'
| def test_model_tax(self):
| obj = Tax(name='test', rate=10)
obj.save()
self.assertEquals('test', obj.name)
self.assertNotEquals(obj.id, None)
obj.delete()
|
'Test equity model'
| def test_model_equity(self):
| contact_type = ContactType(name='test')
contact_type.save()
contact = Contact(name='test', contact_type=contact_type)
contact.save()
obj = Equity(issue_price=10, sell_price=10, issuer=contact, owner=contact)
obj.save()
self.assertNotEquals(obj.id, None)
obj.delete()
|
'Test asset model'
| def test_model_asset(self):
| contact_type = ContactType(name='test')
contact_type.save()
contact = Contact(name='test', contact_type=contact_type)
contact.save()
obj = Asset(name='test', owner=contact)
obj.save()
self.assertEquals('test', obj.name)
self.assertNotEquals(obj.id, None)
obj.delete()
|
'Test liability model'
| def test_model_liability(self):
| contact_type = ContactType(name='test')
contact_type.save()
contact = Contact(name='test', contact_type=contact_type)
contact.save()
currency = Currency(code='GBP', name='Pounds', symbol='L', is_default=True)
currency.save()
account = Account(name='test', owner=contact, balance_currency=curr... |
'Test account model'
| def test_model_account(self):
| contact_type = ContactType(name='test')
contact_type.save()
contact = Contact(name='test', contact_type=contact_type)
contact.save()
currency = Currency(code='GBP', name='Pounds', symbol='L', is_default=True)
currency.save()
obj = Account(name='test', owner=contact, balance_currency=currency... |
'Test transaction model'
| def test_model_transaction(self):
| contact_type = ContactType(name='test')
contact_type.save()
contact = Contact(name='test', contact_type=contact_type)
contact.save()
currency = Currency(code='GBP', name='Pounds', symbol='L', is_default=True)
currency.save()
account = Account(name='test', owner=contact, balance_currency=curr... |
'Initial Setup'
| def setUp(self):
| if (not self.prepared):
Object.objects.all().delete()
User.objects.all().delete()
(self.group, created) = Group.objects.get_or_create(name='test')
(duser, created) = DjangoUser.objects.get_or_create(username=self.username)
duser.set_password(self.password)
duser.save(... |
'Test index page with login at /finance/'
| def test_finance_login(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/index/'
| def test_finance_index_login(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_index_transactions'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/income/'
| def test_finance_income(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_income_view'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/balance/'
| def test_finance_balance(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_balance_sheet'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/accounts/'
| def test_finance_accounts_index(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_index_accounts'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/account/add/'
| def test_finance_account_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_account_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/account/edit/<account_id>'
| def test_finance_account_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_account_edit', args=[self.account.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/account/view/<account_id>'
| def test_finance_account_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_account_view', args=[self.account.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/account/delete/<account_id>'
| def test_finance_account_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_account_delete', args=[self.account.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/assets/'
| def test_finance_assets_index(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_index_assets'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/asset/add/'
| def test_finance_asset_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_asset_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/asset/edit/<asset_id>'
| def test_finance_asset_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_asset_edit', args=[self.asset.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/asset/view/<asset_id>'
| def test_finance_asset_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_asset_view', args=[self.asset.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/asset/delete/<asset_id>'
| def test_finance_asset_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_asset_delete', args=[self.asset.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/equity/'
| def test_finance_equity_index(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_index_equities'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/equity/add/'
| def test_finance_equity_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_equity_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/equity/edit/<equity_id>'
| def test_finance_equity_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_equity_edit', args=[self.equity.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/equity/view/<equity_id>'
| def test_finance_equity_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_equity_view', args=[self.equity.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/equity/delete/<equity_id>'
| def test_finance_equity_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_equity_delete', args=[self.equity.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/transaction/'
| def test_finance_transactions_index(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_index_transactions'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/transaction/add/'
| def test_finance_transaction_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_transaction_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/transaction/add/liability/(?P<liability_id>\d+)'
| def test_finance_transaction_add_liability(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_transaction_add', args=[self.liability.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/transaction/edit/<transaction_id>'
| def test_finance_transaction_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_transaction_edit', args=[self.transaction.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/transaction/view/<transaction_id>'
| def test_finance_transaction_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_transaction_view', args=[self.transaction.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/transaction/delete/<transaction_id>'
| def test_finance_transaction_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_transaction_delete', args=[self.transaction.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/liability/'
| def test_finance_liability_index(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_index_liabilities'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/liability/add/'
| def test_finance_liability_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_liability_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/liability/edit/<liability_id>'
| def test_finance_liability_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_liability_edit', args=[self.liability.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/liability/view/<liability_id>'
| def test_finance_liability_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_liability_view', args=[self.liability.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/liability/delete/<liability_id>'
| def test_finance_liability_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_liability_delete', args=[self.liability.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/receivables/'
| def test_finance_receivables_index(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_index_receivables'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/receivable/add/'
| def test_finance_receivable_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_receivable_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/receivable/edit/<receivable_id>'
| def test_finance_receivable_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_receivable_edit', args=[self.liability.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/receivable/view/<receivable_id>'
| def test_finance_receivable_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_receivable_view', args=[self.liability.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/liability/delete/<receivable_id>'
| def test_finance_receivable_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_receivable_delete', args=[self.liability.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/category/add/'
| def test_finance_category_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_category_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/category/edit/<category_id>'
| def test_finance_category_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_category_edit', args=[self.category.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/category/view/<category_id>'
| def test_finance_category_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_category_view', args=[self.category.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/category/delete/<category_id>'
| def test_finance_category_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_category_delete', args=[self.category.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/currency/add/'
| def test_finance_currency_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_currency_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/currency/edit/<currency_id>'
| def test_finance_currency_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_currency_edit', args=[self.currency.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/currency/view/<currency_id>'
| def test_finance_currency_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_currency_view', args=[self.currency.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/currency/delete/<currency_id>'
| def test_finance_currency_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_currency_delete', args=[self.currency.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/tax/add/'
| def test_finance_tax_add(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_tax_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/tax/edit/<tax_id>'
| def test_finance_tax_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_tax_edit', args=[self.tax.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/tax/view/<tax_id>'
| def test_finance_tax_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_tax_view', args=[self.tax.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/tax/delete/<tax_id>'
| def test_finance_tax_delete(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_tax_delete', args=[self.tax.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/settings/view/'
| def test_finance_settings_view(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_settings_view'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /finance/settings/edit/'
| def test_finance_settings_edit(self):
| response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
self.assertRedirects(response, '/')
response = self.client.get(reverse('finance_settings_edit'))
self.assertEquals(response.status_code, 200)
|
'Test index page at /finance/'
| def test_index(self):
| response = self.client.get('/finance/')
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/index/'
| def test_finance_index_out(self):
| response = self.client.get(reverse('finance_index_transactions'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/income/'
| def test_finance_income_out(self):
| response = self.client.get(reverse('finance_income_view'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/balance/'
| def test_finance_balance_out(self):
| response = self.client.get(reverse('finance_balance_sheet'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/accounts/'
| def test_finance_accounts_index_out(self):
| response = self.client.get(reverse('finance_index_accounts'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/account/add/'
| def test_finance_account_add_out(self):
| response = self.client.get(reverse('finance_account_add'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/account/edit/<account_id>'
| def test_finance_account_edit_out(self):
| response = self.client.get(reverse('finance_account_edit', args=[self.account.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/account/view/<account_id>'
| def test_finance_account_view_out(self):
| response = self.client.get(reverse('finance_account_view', args=[self.account.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/account/delete/<account_id>'
| def test_finance_account_delete_out(self):
| response = self.client.get(reverse('finance_account_delete', args=[self.account.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/assets/'
| def test_finance_assets_index_out(self):
| response = self.client.get(reverse('finance_index_assets'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/asset/add/'
| def test_finance_asset_add_out(self):
| response = self.client.get(reverse('finance_asset_add'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/asset/edit/<asset_id>'
| def test_finance_asset_edit_out(self):
| response = self.client.get(reverse('finance_asset_edit', args=[self.asset.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/asset/view/<asset_id>'
| def test_finance_asset_view_out(self):
| response = self.client.get(reverse('finance_asset_view', args=[self.asset.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/asset/delete/<asset_id>'
| def test_finance_asset_delete_out(self):
| response = self.client.get(reverse('finance_asset_delete', args=[self.asset.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/equity/'
| def test_finance_equity_index_out(self):
| response = self.client.get(reverse('finance_index_equities'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/equity/add/'
| def test_finance_equity_add_out(self):
| response = self.client.get(reverse('finance_equity_add'))
self.assertRedirects(response, reverse('user_login'))
|
'Tesing /finance/equity/edit/<equity_id>'
| def test_finance_equity_edit_out(self):
| response = self.client.get(reverse('finance_equity_edit', args=[self.equity.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/equity/view/<equity_id>'
| def test_finance_equity_view_out(self):
| response = self.client.get(reverse('finance_equity_view', args=[self.equity.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/equity/delete/<equity_id>'
| def test_finance_equity_delete_out(self):
| response = self.client.get(reverse('finance_equity_delete', args=[self.equity.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/transaction/'
| def test_finance_transactions_index_out(self):
| response = self.client.get(reverse('finance_index_transactions'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/transaction/add/'
| def test_finance_transaction_add_out(self):
| response = self.client.get(reverse('finance_transaction_add'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/transaction/add/liability/(?P<liability_id>\d+)'
| def test_finance_transaction_add_liability_out(self):
| response = self.client.get(reverse('finance_transaction_add', args=[self.liability.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/transaction/edit/<transaction_id>'
| def test_finance_transaction_edit_out(self):
| response = self.client.get(reverse('finance_transaction_edit', args=[self.transaction.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/transaction/view/<transaction_id>'
| def test_finance_transaction_view_out(self):
| response = self.client.get(reverse('finance_transaction_view', args=[self.transaction.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/transaction/delete/<transaction_id>'
| def test_finance_transaction_delete_out(self):
| response = self.client.get(reverse('finance_transaction_delete', args=[self.transaction.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/liability/'
| def test_finance_liability_index_out(self):
| response = self.client.get(reverse('finance_index_liabilities'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/liability/add/'
| def test_finance_liability_add_out(self):
| response = self.client.get(reverse('finance_liability_add'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/liability/edit/<liability_id>'
| def test_finance_liability_edit_out(self):
| response = self.client.get(reverse('finance_liability_edit', args=[self.liability.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/liability/view/<liability_id>'
| def test_finance_liability_view_out(self):
| response = self.client.get(reverse('finance_liability_view', args=[self.liability.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/liability/delete/<liability_id>'
| def test_finance_liability_delete_out(self):
| response = self.client.get(reverse('finance_liability_delete', args=[self.liability.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/receivables/'
| def test_finance_receivables_index_out(self):
| response = self.client.get(reverse('finance_index_receivables'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/receivable/add/'
| def test_finance_receivable_add_out(self):
| response = self.client.get(reverse('finance_receivable_add'))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/receivable/edit/<receivable_id>'
| def test_finance_receivable_edit_out(self):
| response = self.client.get(reverse('finance_receivable_edit', args=[self.liability.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/receivable/view/<receivable_id>'
| def test_finance_receivable_view_out(self):
| response = self.client.get(reverse('finance_receivable_view', args=[self.liability.id]))
self.assertRedirects(response, reverse('user_login'))
|
'Testing /finance/liability/delete/<receivable_id>'
| def test_finance_receivable_delete_out(self):
| response = self.client.get(reverse('finance_receivable_delete', args=[self.liability.id]))
self.assertRedirects(response, reverse('user_login'))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.