tests/constants.py
def bel_isolated_reconstituted(self, graph: BELGraph):
        """Run the isolated node test."""
        self.assertIsNotNone(graph)
        self.assertIsInstance(graph, BELGraph)

        adgrb1 = Protein(namespace='HGNC', name='ADGRB1')
        adgrb2 = Protein(namespace='HGNC', name='ADGRB2')
        adgrb_complex = ComplexAbundance([adgrb1, adgrb2])
        achlorhydria = Pathology(namespace='MESHD', name='Achlorhydria')

        for node in graph:
            self.assertIsInstance(node, BaseEntity)

        self.assertIn(adgrb1, graph)
        self.assertIn(adgrb2, graph)
        self.assertIn(adgrb_complex, graph)
        self.assertIn(achlorhydria, graph)

        assert_has_edge(self, adgrb1, adgrb_complex, graph, only=True, relation=PART_OF)
        assert_has_edge(self, adgrb2, adgrb_complex, graph, only=True, relation=PART_OF)
Run the isolated node test.
Run the isolated node test.
Run the isolated node test .
def bel_isolated_reconstituted(self, graph: BELGraph):
        self.assertIsNotNone(graph)
        self.assertIsInstance(graph, BELGraph)
        adgrb1 = Protein(namespace='HGNC', name='ADGRB1')
        adgrb2 = Protein(namespace='HGNC', name='ADGRB2')
        adgrb_complex = ComplexAbundance([adgrb1, adgrb2])
        achlorhydria = Pathology(namespace='MESHD', name='Achlorhydria')
        for node in graph:
            self.assertIsInstance(node, BaseEntity)
        self.assertIn(adgrb1, graph)
        self.assertIn(adgrb2, graph)
        self.assertIn(adgrb_complex, graph)
        self.assertIn(achlorhydria, graph)
        assert_has_edge(self, adgrb1, adgrb_complex, graph, only=True, relation=PART_OF)
        assert_has_edge(self, adgrb2, adgrb_complex, graph, only=True, relation=PART_OF)
def bel_isolated_reconstituted ( self , graph : BELGraph ) : self . assertIsNotNone ( graph ) self . assertIsInstance ( graph , BELGraph ) adgrb1 = Protein ( namespace = 'HGNC' , name = 'ADGRB1' ) adgrb2 = Protein ( namespace = 'HGNC' , name = 'ADGRB2' ) adgrb_complex = ComplexAbundance ( [ adgrb1 , adgrb2 ] ) achlorhydria = Pathology ( namespace = 'MESHD' , name = 'Achlorhydria' ) for node in graph : self . assertIsInstance ( node , BaseEntity ) self . assertIn ( adgrb1 , graph ) self . assertIn ( adgrb2 , graph ) self . assertIn ( adgrb_complex , graph ) self . assertIn ( achlorhydria , graph ) assert_has_edge ( self , adgrb1 , adgrb_complex , graph , only = True , relation = PART_OF ) assert_has_edge ( self , adgrb2 , adgrb_complex , graph , only = True , relation = PART_OF )
Run the isolated node test.
Run the isolated node test .
"""Run the isolated node test."""
self
graph
BELGraph