def test_missing_algorithm(self): six.assertRaisesRegex( self, ValueError, 'Missing algorithm field', plan.build_learning_rate_decay_from_params, {'foo': 'bar'}, None, 0.01)