Ejemplo n.º 1
0
 def test_syncdb_other_model_statedb(self):
     """Other models should not sync to State DBs"""
     router = StateDatasetRouter()
     self.assertFalse(router.allow_syncdb('traffic_stops_nc', User))
Ejemplo n.º 2
0
 def test_syncdb_other_model_defaultdb(self):
     """Other models should sync to the default DB"""
     router = StateDatasetRouter()
     self.assertTrue(router.allow_syncdb('default', User))
Ejemplo n.º 3
0
 def test_syncdb_state_model_statedb(self):
     """State models should sync to State DBs"""
     router = StateDatasetRouter()
     self.assertTrue(router.allow_syncdb('traffic_stops_nc', Stop))
Ejemplo n.º 4
0
 def test_syncdb_state_model_defaultdb(self):
     """State models should not sync to the default DB"""
     router = StateDatasetRouter()
     self.assertFalse(router.allow_syncdb('default', Stop))