Statistics
| Branch: | Tag: | Revision:

root / snf-django-lib / snf_django / utils / testing.py @ 34bd6588

History | View | Annotate | Download (9.5 kB)

# Date Author Comment
2c6ac437 09/24/2013 12:30 pm Christos Stavrakakis

Fix missing import and broken test

dcb8545f 09/24/2013 11:39 am Christos Stavrakakis

snf-django: Add missing import

3f9db536 09/24/2013 10:55 am Christos Stavrakakis

snf-django: pep8 fixes

f2080d16 09/17/2013 02:33 pm Christos Stavrakakis

cyclades: Mock vm removal if creation fails

In case creating a VM fails before the OP_INSTANCE_CREATE job is
enqueued in Ganeti, the VM and its NICs must be deleted, and the
resources must be released from Quotaholder, which is exactly what is
done when a VM is deleted from Ganeti. Instead of duplicating the code,...

2ad4eb80 06/17/2013 01:35 pm Kostas Papadimitriou

django-lib: Additional BaseAPITest helper assertion

Introduce assertMethodNotAllowed method in BaseAPITest class. The method
asserts that provided response is a valid ``Method not allowed`` API response.

aba462a2 05/16/2013 02:55 pm Giorgos Korfiatis

astakos: Adapt tests to 2.6-style unittest

Define assertGreater, assertIn, assertRaises in snf_django.utils.testing

27899d6f 05/09/2013 03:13 pm Christos Stavrakakis

Improve mocked quotaholder

Mock 'resolve_commissions' call.

184a2a8c 04/30/2013 05:05 pm Christos Stavrakakis

Mock quotaholder for Cyclades tests

Create 'mocked_quotaholder' context manager to bypass commission and use
it in Cyclades tests. Also this commit does some various fixes to other
tests.

d2b8ec7b 04/08/2013 11:07 am Christos Stavrakakis

Move common test code to snf_django.lib.testing