@patch('tagtrain.data.by_owner.remove_user_from_group')
def test_unknown_group(remove_user_from_group):
    remove_user_from_group.side_effect = data.Group.DoesNotExist()
    (app, reply, message, match) = fake.create_all()
    Remove(app).run(reply, message, match)
    remove_user_from_group.assert_called_once_with('AuthorName', 'GroupName', 'MemberName')
    reply.append.assert_called_once_with('Group `GroupName` does not exist.  Skipping.')
@patch('tagtrain.data.by_owner.remove_user_from_group')
def test_unknown_group(remove_user_from_group):
    remove_user_from_group.side_effect = data.Group.DoesNotExist()
    (app, reply, message, match) = fake.create_all()
    Remove(app).run(reply, message, match)
    remove_user_from_group.assert_called_once_with('AuthorName', 'GroupName', 'MemberName')
    reply.append.assert_called_once_with('Group `GroupName` does not exist.  Skipping.')