#NEWLINE# def test_router_allow_relation( model ) : #NEWLINE# #INDENT# obj1 = model ( ) #NEWLINE# obj1 . _state . db = 'slave1' #NEWLINE# obj2 = model ( ) #NEWLINE# obj2 . _state . db = 'slave2' #NEWLINE# assert django_router . allow_relation ( obj1 , model )