1
# Copyright 2012 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
"""Sanity checks for database migrations.
6
These tests need to be included in each of the MAAS applications that has
7
South-managed database migrations.
10
from __future__ import (
19
from maasserver.testing.db_migrations import detect_sequence_clashes
20
from maastesting.testcase import TestCase
23
class TestMigrations(TestCase):
25
def test_migrations_have_unique_numbers(self):
26
self.assertEqual([], detect_sequence_clashes('metadataserver'))