def assertMethodsEqual(self, fs, gs): # we're going to use this to match bound against unbound methods self.assertEqual([_im_func(f) for f in fs], [_im_func(g) for g in gs])