def test_single_user_data(self):
        u1 = make_user('foo', 'bar', False)
        u1.admin = True
        g1 = Group('foobars')
        u1.groups.add(g1)
        self.db.add_all([u1, g1])
        transaction.commit()
        user = self.access.user_data('foo')
        self.assertEqual(user, {
            'username': 'foo',
            'admin': True,
            'groups': ['foobars'],
        })
Retrieve a single user's data
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_access_backends.py/TestSQLBackend.test_single_user_data