You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Enso-Bot/venv/Lib/site-packages/south/tests/freezer.py

16 lines
619 B
Python

from south.tests import unittest
from south.creator.freezer import model_dependencies
from south.tests.fakeapp import models
class TestFreezer(unittest.TestCase):
def test_dependencies(self):
self.assertEqual(set(model_dependencies(models.SubModel)),
set([models.BaseModel, models.Other1, models.Other2]))
self.assertEqual(set(model_dependencies(models.CircularA)),
set([models.CircularA, models.CircularB, models.CircularC]))
self.assertEqual(set(model_dependencies(models.Recursive)),
set([models.Recursive]))