def testAssertProtoEqualsStr(self):
    graph_str = "node { name: 'w1' op: 'params' }"
    graph_def = graph_pb2.GraphDef()
    text_format.Merge(graph_str, graph_def)
    self.assertProtoEquals(graph_str, graph_def)
    self.assertProtoEquals(graph_def, graph_def)
def testAssertProtoEqualsStr(self):
    graph_str = "node { name: 'w1' op: 'params' }"
    graph_def = graph_pb2.GraphDef()
    text_format.Merge(graph_str, graph_def)
    self.assertProtoEquals(graph_str, graph_def)
    self.assertProtoEquals(graph_def, graph_def)