def METHOD_NAME(self, app):
    dataset = factories.Dataset()
    data = {
        'resource': {'package_id': dataset['id']},
        'fields': [{'id': 'a'}, {'id': 'b'}],
        'records': [{'a': 1, 'b': 'xyz'}, {'a': 2, 'b': 'zzz'}]
    }
    result = helpers.call_action('datastore_create', **data)
    resource_id = result['resource_id']
    url = h.url_for('{}_resource.read'.format(dataset['type']),
                    id=dataset['id'], resource_id=resource_id)
    result = app.get(url)
    assert 'data-module="data-viewer"' in result.body