YUI.add('youtube-model-yql-tests', function (Y, NAME) {

    var suite = new YUITest.TestSuite(NAME),
        model = null,
        A = YUITest.Assert;

    suite.add(new YUITest.TestCase({
        name: "youtube-model-yql user tests",

        setUp: function () {
            model = Y.mojito.models["youtube-model-yql"];
        },

        tearDown: function () {
            model = null;
        },
        'test mojit model': function () {
            var called = false,
                cfg = { color: 'red' };

            A.isNotNull(model);
            A.isFunction(model.init);
            model.init(cfg);
            A.areSame(cfg, model.config);

            // check getData function is there
            A.isFunction(model.getData);
            /**
            model.getData({},function (data) {
                called = true;
                //A.isTrue(!err);
                //A.isObject(data);
                //A.areSame('data', data.some);
            });
            A.isTrue(called);
            **/
        }
    }));

    YUITest.TestRunner.add(suite);



}, '0.0.1', {requires: ['mojito-test', 'youtube-model-yql']});