tests: check that all services have a service id.

This commit is contained in:
Frédéric Péters 2014-07-08 08:43:33 +02:00
parent 1ff180fd48
commit bae63f27ff
1 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
from django.test import TestCase
# Create your tests here.
from models import AVAILABLE_SERVICES
class ServiceTest(TestCase):
def test_service_id(self):
"""
Tests that all services have a service id.
"""
for service in AVAILABLE_SERVICES:
self.assertTrue(service.Extra.service_id)