def METHOD_NAME(self):
    should_have = ('gw_ip', 'virtual')
    for edge in (
        self.netmap_graph.get_edge_data(self.a, self.b).get('metadata').get(2111)
    ):
        self.assertTrue(
            all([hasattr(edge.u, attribute) for attribute in should_have]),
            msg="Didn't find all keys {0}, only found: {1}".format(
                should_have, edge.__dict__.keys()
            ),
        )