示例#1
0
def test_from_array():
    lexicon = Lexicon.default()

    a = [(100, 200, 'red sandstone'),
         (200, 250, 'grey shale'),
         (200, 250, 'red sandstone with shale stringers'),
         ]
    s = Striplog._from_array(a, lexicon=lexicon)
    assert s.__str__() != ''
示例#2
0
def test_from_array():
    """Test the array route.
    """
    lexicon = Lexicon.default()

    a = [(100, 200, 'red sandstone'),
         (200, 250, 'grey shale'),
         (200, 250, 'red sandstone with shale stringers'),
         ]
    s = Striplog._from_array(a, lexicon=lexicon)
    assert s.__str__() != ''
示例#3
0
def test_from_array():
    """Test the array route.
    Deprecated.
    """
    lexicon = Lexicon.default()

    a = [(100, 200, 'red sandstone'),
         (200, 250, 'grey shale'),
         (200, 250, 'red sandstone with shale stringers'),
         ]

    with pytest.warns(DeprecationWarning):
        s = Striplog._from_array(a, lexicon=lexicon)

    assert s.__str__() != ''
示例#4
0
def test_from_array():
    lexicon = Lexicon.default()

    a = [(100, 200, "red sandstone"), (200, 250, "grey shale"), (200, 250, "red sandstone with shale stringers")]
    s = Striplog._from_array(a, lexicon=lexicon)
    assert s.__str__() != ""