def METHOD_NAME(self, create_with_upload):
    dataset = factories.Dataset()
    resource = create_with_upload(
        u"hello world", u"file.txt",
        package_id=dataset[u'id']
    )
    assert resource[u"url_type"] == u"upload"
    assert resource[u"format"] == u"TXT"
    assert resource[u"size"] == 11