def test_yeast_model_raises(self): with self.assertRaises(YeastException) as ctx: YeastModel(u"not an allowed method") self.assertEquals( str(ctx.exception), u"Method 'not an allowed method' not allowed for yeast model", ) # noqa
def setUp(self): self.yeast_model = YeastModel(u"stir plate")