Package madrona :: Package features :: Module tests :: Class DeleteTest
[hide private]

Class DeleteTest

source code

django.test.TestCase --+
                       |
                      DeleteTest

Instance Methods [hide private]
 
setUp(self) source code
 
test_delete_not_logged_in(self)
If user not logged in they can't delete anything 401 status_code response
source code
 
test_delete_not_owner(self)
Don't allow just any old user to delete objects.
source code
 
test_delete_not_owner_but_staff(self)
Staff users can delete anyone's stuff
source code
 
test_delete_authorized(self)
Users can delete objects that belong to them
source code
 
test_delete_collection(self)
Users can delete collections that belong to them Any features in the collection will also be deleted
source code
 
test_multi_delete(self) source code
Method Details [hide private]

test_delete_not_owner(self)

source code 

Don't allow just any old user to delete objects. Return 403 Forbidden status code