def test_string_is_not_ok(): nt.assert_false(ok("123"))
def test_anything_is_not_ok(): class Foo(object): pass nt.assert_false(ok(Foo())) nt.assert_false(ok(123))
def test_ndarray_is_not_ok(): nt.assert_false(ok(np.array([1,2,3])))
def test_set_is_not_ok(): nt.assert_false(ok({1,2,3}))
def test_dict_is_not_ok(): nt.assert_false(ok({1:1, 2:2, 3:3}))
def test_tuple_is_not_ok(): nt.assert_false(ok((1,2,3)))
def test_empty_ndarray_is_ok(): nt.assert_true(ok(np.array([])))
def test_false_is_not_ok(): nt.assert_true(not ok(False))
def test_empty_set_is_ok(): nt.assert_true(ok(set()))
def test_empty_string_is_ok(): nt.assert_true(ok(""))
def test_empty_tuple_is_ok(): nt.assert_true(ok(tuple()))
def test_empty_dict_is_ok(): nt.assert_true(ok({}))
def test_empty_list_is_ok(): nt.assert_true(ok([]))
def test_ok_true_is_ok(): nt.assert_true(ok(MockResult(True)))
def test_list_is_not_ok(): nt.assert_false(ok([1,2,3]))
def test_ok_false_is_not_ok(): nt.assert_true(not ok(MockResult(False)))
def test_true_is_ok(): nt.assert_true(ok(True))