def test_list_equipment_types(self): obs = Equipment.list_equipment_types() exp = [ 'echo', 'EpMotion', 'HiSeq1500', 'HiSeq2500', 'HiSeq3000', 'HiSeq4000', 'King Fisher', 'MiniSeq', 'MiSeq', 'mosquito', 'NextSeq', 'Not applicable', 'NovaSeq', 'tm 1000 8 channel pipette head', 'tm 300 8 channel pipette head', 'tm 50 8 channel pipette head' ] self.assertEqual(obs, exp)
def get(self): equipment_types = Equipment.list_equipment_types() self.render('equipments.html', equipment_types=equipment_types)