def METHOD_NAME(self):
    """An OPDSAuthenticationFlow object can set `type` during
    to_dict().
    """
    flow = MockFlow("description")
    doc = flow.authentication_flow_document("argument")
    assert (
        {'type': 'http://mock1/', 'description': 'description',
         'arg': 'argument'} ==
        doc)