Add python wrapper for Schedule::wellNames( const std::string& )
This commit is contained in:
@@ -75,5 +75,15 @@ class TestSchedule(unittest.TestCase):
|
||||
rst = sch.restart
|
||||
|
||||
|
||||
def test_well_names(self):
|
||||
deck = Parser().parse(test_path('spe3/SPE3CASE1.DATA'))
|
||||
state = EclipseState(deck)
|
||||
sch = Schedule( deck, state )
|
||||
wnames = sch.well_names("*")
|
||||
self.assertTrue("PROD" in wnames)
|
||||
self.assertTrue("INJ" in wnames)
|
||||
self.assertEqual(len(wnames), 2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user