def test_table_with_experiment_id_spacing(self):
        ip_table = test_utils.create_fake_lab_table()
        experiment_id_cell = IntentParserCell()
        experiment_id_cell.add_paragraph('experiment_id:29422')
        ip_table.add_row([experiment_id_cell])

        table_parser = LabTable(ip_table)
        table_parser.process_table()
        table_content = table_parser.get_structured_request()
        self.assertEqual(table_content[dc_constants.LAB],
                         ip_constants.TACC_SERVER)
        self.assertEqual(table_content[dc_constants.EXPERIMENT_ID],
                         'experiment.tacc.29422')
 def _create_transcriptic_lab_table(self):
     lab_table = test_utils.create_fake_lab_table()
     lab_cell = IntentParserCell()
     lab_cell.add_paragraph('lab: Transcriptic')
     lab_table.add_row([lab_cell])
     return lab_table