def test_list_experiments(self):
        # student1
        db_sess_id1 = ValidDatabaseSessionId('student1', "student")
        sess_id1, _ = self.ups._reserve_session(db_sess_id1)

        with wlcontext(self.ups, session_id = sess_id1):
            experiments = core_api.list_experiments()

            self.assertLessEqual(5, len(experiments) )

            experiment_names = list(( experiment.experiment.name for experiment in experiments ))
            self.assertTrue( 'ud-dummy' in experiment_names )
            self.assertTrue( 'ud-logic' in experiment_names )
            self.assertTrue( 'ud-fpga' in experiment_names )
            self.assertTrue( 'flashdummy' in experiment_names )
            self.assertTrue( 'javadummy' in experiment_names )

            core_api.logout()

        # student2
        db_sess_id2 = ValidDatabaseSessionId('student2', "student")
        sess_id2, _ = self.ups._reserve_session(db_sess_id2)

        with wlcontext(self.ups, session_id = sess_id2):
            experiments = core_api.list_experiments()
            self.assertEquals(7, len(experiments) )

            experiment_names = list(( experiment.experiment.name for experiment in experiments ))
            self.assertTrue( experiment_names in 'ud-dummy' )
            self.assertTrue( 'ud-fpga' in experiment_names )
            self.assertTrue( 'ud-pld' in experiment_names )
            self.assertTrue( 'ud-gpib' in experiment_names )
            self.assertTrue( 'ud-logic' in experiment_names )
            self.assertTrue( 'javadummy' in experiment_names )
            self.assertTrue( 'flashdummy' in experiment_names )

            core_api.logout()
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/test/unit/weblab/core/test_server.py/UserProcessingServerTestCase.test_list_experiments/swapped operands of `in`