pook/assertion.py
def equal(x, y):
    """
    Shortcut function for ``unittest.TestCase.assertEqual()``.

    Arguments:
        x (mixed)
        y (mixed)

    Raises:
        AssertionError: in case of assertion error.

    Returns:
        bool
    """
    if PY_3:
        return test_case().assertEqual(x, y) or True

    assert x == y
def equal(x, y):
    """
    Shortcut function for ``unittest.TestCase.assertEqual()``.

    Arguments:
        x (mixed)
        y (mixed)

    Raises:
        AssertionError: in case of assertion error.

    Returns:
        bool
    """
    if PY_3:
        return test_case().assertEqual(x, y) or True

    assert x == y
def equal ( x , y ) : if PY_3 : return test_case ( ) . assertEqual ( x , y ) or True assert x == y
Shortcut function for ``unittest.TestCase.assertEqual()``.

    Arguments:
        x (mixed)
        y (mixed)

    Raises:
        AssertionError: in case of assertion error.

    Returns:
        bool
Shortcut function for unittest . TestCase . assertEqual () .