'Synchronization behavior is predictable'

def test_syncdb_selection(self):

    self.assertTrue(router.allow_syncdb(u'default', User))
    self.assertTrue(router.allow_syncdb(u'default', Book))
    self.assertTrue(router.allow_syncdb(u'other', User))
    self.assertTrue(router.allow_syncdb(u'other', Book))
    router.routers = [TestRouter(), AuthRouter()]
    self.assertTrue(router.allow_syncdb(u'default', User))
    self.assertTrue(router.allow_syncdb(u'default', Book))
    self.assertTrue(router.allow_syncdb(u'other', User))
    self.assertTrue(router.allow_syncdb(u'other', Book))
    router.routers = [AuthRouter(), TestRouter()]
    self.assertFalse(router.allow_syncdb(u'default', User))
    self.assertTrue(router.allow_syncdb(u'default', Book))
    self.assertTrue(router.allow_syncdb(u'other', User))
    self.assertFalse(router.allow_syncdb(u'other', Book))
