def test_returns_false_correctly(self): assert dbsrv.users_in_group([1, 3], 1) is False
def is_member(group_id, user_id, dbsrv=dbsrv): if dbsrv.users_in_group(user_id, group_id): return make_response("", 200) else: abort(404)
def test_returns_true_correctly(self): assert dbsrv.users_in_group([1, 2], 1) is True assert dbsrv.users_in_group(1, 1) is True