Changeset 5766


Ignore:
Timestamp:
May 13, 2012 2:25:46 PM (7 years ago)
Author:
wehart
Message:

Further tests of the single-objective logic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/tests/unit/test_obj.py

    r5765 r5766  
    5050        self.assertEqual(instance.obj(), 8)
    5151        self.assertEqual(value(instance.obj), 8)
     52        self.assertEqual(value(instance.obj._data[None]), 8)
    5253
    5354    def test_expr2_option(self):
     
    6162        self.assertEqual(instance.obj(), 2)
    6263        self.assertEqual(value(instance.obj), 2)
     64        self.assertEqual(value(instance.obj._data[None]), 2)
    6365
    6466    def test_rule_option(self):
     
    7476        self.assertEqual(self.instance.obj(), 8)
    7577        self.assertEqual(value(self.instance.obj), 8)
     78        self.assertEqual(value(self.instance.obj._data[None]), 8)
    7679
    7780    def test_arguments(self):
Note: See TracChangeset for help on using the changeset viewer.