Exemple #1
0
    def test_graph_load_from_string(self):
        for test_name, path in config.TEST_GRAPHS.items():
            with open(path) as file:
                file_content = file.read()

            loader = GraphLoader()
            graph = loader.from_string(file_content)
            test_func = getattr(self, "assert_{0}_loaded".format(test_name))
            test_func(graph)
Exemple #2
0
    def test_graph_load_from_string(self):
        for test_name, path in config.TEST_GRAPHS.items():
            with open(path) as file:
                file_content = file.read()

            loader = GraphLoader()
            graph = loader.from_string(file_content)
            test_func = getattr(self, "assert_{0}_loaded".format(test_name))
            test_func(graph)
Exemple #3
0
 def test_graph_load_from_file(self):
     for test_name, path in config.TEST_GRAPHS.items():
         loader = GraphLoader()
         graph = loader.from_file(path)
         test_func = getattr(self, "assert_{0}_loaded".format(test_name))
         test_func(graph)
Exemple #4
0
 def test_graph_load_from_file(self):
     for test_name, path in config.TEST_GRAPHS.items():
         loader = GraphLoader()
         graph = loader.from_file(path)
         test_func = getattr(self, "assert_{0}_loaded".format(test_name))
         test_func(graph)