def test_assert_not_none_bad(): with asserts.expect_exception(AssertionError): asserts.is_not_none(None)
def test_assert_same_bad(x, y): with asserts.expect_exception(AssertionError): asserts.are_same(x, y)
def test_assert_not_in_bad(item, collection): with asserts.expect_exception(AssertionError): asserts.is_not_in(item, collection)
def test_assert_not_empty_bad(collection): with asserts.expect_exception(AssertionError): asserts.is_not_empty(collection)
def test_test_call_not_implemented(): t = Test('foo', 'bar.foo', 'foo bar test') with asserts.expect_exception(NotImplementedError): t()
def test_assert_not_equal_bad(x, y): with asserts.expect_exception(AssertionError): asserts.are_not_equal(x, y)
def test_assert_length_bad(collection): with asserts.expect_exception(AssertionError): asserts.has_length(collection, 1)
def test_assert_not_same_bad(value): with asserts.expect_exception(AssertionError): asserts.are_not_same(value, value)
def test_is_false_fail(value): with asserts.expect_exception(AssertionError): asserts.is_false(value)
def test_test_required_variables_not_implemented(): t = Test('foo', 'bar.foo', 'foo bar test') with asserts.expect_exception(NotImplementedError): t.required_variables()
def test_divide_2_0(): with asserts.expect_exception(ZeroDivisionError): 2 / 0