def test_grant_group_read_permission(self):
        g = Group('foo')
        self.db.add(g)
        transaction.commit()
        self.access.edit_group_permission('pkg1', 'foo', 'read', True)
        transaction.commit()
        self.db.add(g)
        self.assertEqual(len(g.permissions), 1)
        perm = g.permissions[0]
        self.assertEqual(perm.package, 'pkg1')
        self.assertTrue(perm.read)
        self.assertFalse(perm.write)
Test for missing tolerance in configuration .
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_access_backends.py/TestSQLBackend.test_grant_group_read_permission--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_proximity.py/TestProximity.test_no_tolerance_in_config