def check_members_count(self, group, count):
        if group.members_count and count > 0:
            division = float(group.members_count) / count
            if 0.99 > division or 1.01 < division:
                raise CheckMembersCountFailed("Suspicious ammount of members fetched for group %s. "
                                              "Actual ammount is %d, fetched %d, division is %s" % (
                    group, group.members_count, count, division))