def METHOD_NAME(self):
    """
    Checks if the type-checking returns the right error.
    """
    # graph type-check
    graph_list = [(1, 2), {"node1": 1, "node2": 2}, np.array([1, 2])]
    field = 0.1
    penalty = 0.1
    for each_graph in graph_list:
        with self.assertRaises(TypeError) as e:
            MinimumVertexCover(each_graph, field, penalty)
        self.assertEqual(
            "Input problem graph must be a networkx Graph.", str(e.exception)
        )
    # field capacity type-check
    graph = nx.circulant_graph(6, [1])
    field_list = [np.array(1), np.array(0.5), "oh"]
    penalty = 0.1
    for each_field in field_list:
        with self.assertRaises(TypeError) as e:
            MinimumVertexCover(graph, each_field, penalty)
        self.assertEqual(
            "The input parameter, field, has to be of type float or int",
            str(e.exception),
        )
    # penalty capacity type-check
    graph = nx.circulant_graph(6, [1])
    field = 0.1
    penalty_list = [np.array(1), np.array(0.5), "oh"]
    for each_penalty in penalty_list:
        with self.assertRaises(TypeError) as e:
            MinimumVertexCover(graph, field, each_penalty)
        self.assertEqual(
            "The input parameter, penalty, has to be of type float or int",
            str(e.exception),
        )