def test_noaccess_inactive_user(self):
        """Make sure NoAccess is rasied when the user is inactive."""
        self.user.is_active = False
        self.assertRaises(errors.NoPermission, self.gw.make_udf, '~/p/n')
        self.assertRaises(errors.NoPermission, self.gw.accept_share, 1)
        self.assertRaises(errors.NoPermission, self.gw.get_share, 1)
        self.assertRaises(errors.NoPermission, self.gw.delete_share, 1)
        self.assertRaises(errors.NoPermission, self.gw.get_udf, 1)
        self.assertRaises(errors.NoPermission, self.gw.get_volume_gateway)
        # the generators behave a little differently
        self.assertRaises(errors.NoPermission, list, self.gw.get_shared_by())
        self.assertRaises(errors.NoPermission, list, self.gw.get_udfs())