def test_basic(self):
        self.setup_test_view(self.TestDocument)
        test_obj = self.TestDocument(username='foo', name='bar')
        test_obj.save()

        with self.app.test_request_context():
            response = self.client.get(url_for('test', user='foo'))
        self.assertEqual({
            'username': 'foo',
            'name': 'bar',
            'id': unicode(test_obj.id),
        }, json.loads(response.data))
Replicate variance parameters to match a group's design.
dataset/ETHPy150Open brocaar/flask-views/flask_views/tests/functional/db/mongoengine/test_json.py/JSONDetailViewTestCase.test_basic--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/regression/mixed_linear_model.py/MixedLM._expand_vcomp