Example #1
0
def test_ordered_table_typeError():
    table = [(0, 1),
             (2, 3)]
    table = np.matrix(table)

    with pytest.raises(TypeError):
        a, b, c, d = analyses._ordered_table(table)
Example #2
0
def test_ordered_table_list():
    table = [(0, 1), (2, 3)]

    a, b, c, d = analyses._ordered_table(table)
    assert a == 0
    assert b == 1
    assert c == 2
    assert d == 3
Example #3
0
def test_ordered_table_list():
    table = [(0, 1),
             (2, 3)]

    a, b, c, d = analyses._ordered_table(table)
    assert a == 0
    assert b == 1
    assert c == 2
    assert d == 3
Example #4
0
def test_ordered_table_DataFrame():
    table = [(0, 1), (2, 3)]
    table = pd.DataFrame(table)

    a, b, c, d = analyses._ordered_table(table)
    assert a == 0
    assert b == 1
    assert c == 2
    assert d == 3
Example #5
0
def test_ordered_table_numpy():
    table = [(0, 1), (2, 3)]
    table = np.array(table)

    a, b, c, d = analyses._ordered_table(table)
    assert a == 0
    assert b == 1
    assert c == 2
    assert d == 3
Example #6
0
def test_ordered_table_DataFrame():
    table = [(0, 1),
             (2, 3)]
    table = pd.DataFrame(table)

    a, b, c, d = analyses._ordered_table(table)
    assert a == 0
    assert b == 1
    assert c == 2
    assert d == 3
Example #7
0
def test_ordered_table_numpy():
    table = [(0, 1),
             (2, 3)]
    table = np.array(table)

    a, b, c, d = analyses._ordered_table(table)
    assert a == 0
    assert b == 1
    assert c == 2
    assert d == 3