def METHOD_NAME(self):
    def f():
        r = self.g2.get_neighbor(self.q1)
        self.assertTrue('afi_safis' in r)
        received = 0
        accepted = 0
        for afisafi in r['afi_safis']:
            self.assertTrue('state' in afisafi)
            s = afisafi.get('state')
            self.assertTrue('received' in s)
            received += s.get('received')
            accepted += s.get('accepted')
        self.assertEqual(received, 1)
        self.assertEqual(accepted, 1)
    assert_several_times(f)