def test_get_value_exception(self): o = SimpleDemoModel() ds = SimpleDemoModelSource.as_datasource() col = ColumnCallable(FakeCallable) with self.assertRaises(ValueError): col.get_value(o, ds)
def test_get_value(self): col = ColumnCallable(FakeCallable) v = col.get_value(None, None) self.assertIsInstance(v, RowValue)