Beispiel #1
0
    def test_pathways_are_populated(self):

        context = context_processors.pathways(None)
        pathways_context = context["pathways"]
        for pathway in Pathway.list():
            pathway_name = pathway.__name__
            found_class = getattr(pathways_context, pathway_name)
            self.assertEqual(found_class, pathway)
Beispiel #2
0
 def __init__(self):
     for i in Pathway.list():
         setattr(self, i.__name__, i)