diff LICENSE-MERGELY.html @ 6142:437b41b18420

tests: admin_permissions: split test_delete_ips from test_add_ips While it is not necessary to be pedantic and split each assert in a separate test, it makes sense to create separate tests for separate logical actions. This makes it easy to understand from a test summary what works and what doesn't. Add and delete are deemed two such separate logical actions. The original test_add_ips test did both add and delete, but was not even named to cover this. Note that the 'add' in the delete test is not the same as the 'add' in the add test, i.e. for the delete test direct method calls are made instead of passing through self.app.get/post (which is a higher layer of abstraction). Background of this commit: during the Turbogears2 port, delete actions were not yet functional, and 'test_add_ips' failed as a result even though 'add' was perfectly fine.
author Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
date Fri, 19 Aug 2016 21:32:23 +0200
parents aa3b55946089
children
line wrap: on
line diff