diff --git a/helios_auth/tests.py b/helios_auth/tests.py index 7e5b1005c6894a8099776628a5efaa4254155210..f07f309fb5176007ca67a25ce14c712efc33af35 100644 --- a/helios_auth/tests.py +++ b/helios_auth/tests.py @@ -47,6 +47,16 @@ class UserModelTests(unittest.TestCase): self.assertEquals(u2.info['name'], new_name) + def test_can_create_election(self): + """ + check that auth systems have the can_create_election call and that it's true for the common ones + """ + for auth_system, auth_system_module in AUTH_SYSTEMS.iteritems(): + assert(hasattr(auth_system_module, 'can_create_election')) + if auth_system != 'clever': + assert(auth_system_module.can_create_election('foobar', {})) + + def test_status_update(self): """ check that a user set up with status update ability reports it as such,