Exemplo n.º 1
0
    def test_is_many(self):
        relationship = Relationship(self.financial_adviser,
                                    related_name='clients')

        self.assertTrue(relationship.is_many())
Exemplo n.º 2
0
    def test_isnt_many_related(self):
        self.active_client.financial_planning = self.financial_planning
        relationship = Relationship(self.active_client,
                                    related_name='financial_planning')

        self.assertFalse(relationship.is_many())