def test_manager(self):
        from .models import Role, User
        from .manage import create_role, create_user, add_role

        create_role('test')
        role = Role.query.filter(Role.name == 'test').first()
        self.assertEqual(role.name, 'test')

        create_user('test', 'test@test.com', active=True, password='12345')
        user = User.query.filter(User.username == 'test').first()

        add_role('test', 'test')
        self.assertTrue(user.roles in role)
dataset/ETHPy150Open klen/Flask-Foundation/base/auth/tests.py/AuthTest.test_manager/swapped operands of `in`