Exemplo n.º 1
0
    def test_objections_with_parents(self):
        premise   = Premise(1)
        rel       = MagicMock()
        rel.type  = RelationType.objection
        premise.relations = [rel]

        self.assertEqual(len(premise.objects()), 1)
Exemplo n.º 2
0
    def test_objections_with_parents_without_objections(self):
        premise   = Premise(1)
        rel1      = MagicMock()
        rel2      = MagicMock()
        rel1.type = RelationType.support
        rel2.type = RelationType.situation
        premise.relations = [rel1, rel2]

        self.assertEqual(premise.objects(), [])
Exemplo n.º 3
0
    def test_objections_without_parents(self):
        premise = Premise(1)

        self.assertEqual(premise.objects(), [])