def test_create(self): plate_conf = PlateConfiguration.create('96-well Test desc', 8, 12) obs = Plate.create('New plate', plate_conf) self.assertEqual(obs.external_id, 'New plate') self.assertEqual(obs.plate_configuration, plate_conf) self.assertFalse(obs.discarded) self.assertIsNone(obs.notes) # This is a weird case and it should never happen in normal execution # of the code: the plate has been created without any well, hence all # the None values. In reality, all the plate creation is handled # by one of the Process classes, which ensures the creation of all # the wells. self.assertEqual(obs.layout, [[None] * 12] * 8)
def test_create(self): obs = PlateConfiguration.create('96-well Test description', 8, 12) self.assertEqual(obs.description, '96-well Test description') self.assertEqual(obs.num_rows, 8) self.assertEqual(obs.num_columns, 12)