Example #1
0
def test_shortwellname():
    """Test that shortwellname gives wanted result."""
    mywell = Well()

    mywell._wname = "31/2-A-14 2H"
    short = mywell.shortwellname

    assert short == "A-142H"

    mywell._wname = "6412_2-A-14_2H"
    short = mywell.shortwellname

    assert short == "A-142H"
Example #2
0
def test_shortwellname():
    """Test that shortwellname gives wanted result"""

    mywell = Well()

    mywell._wname = '31/2-A-14 2H'
    short = mywell.shortwellname

    assert short == 'A-142H'

    mywell._wname = '6412_2-A-14_2H'
    short = mywell.shortwellname

    assert short == 'A-142H'