def assert_identical(a, b):
assert_equal(a, b)<EOL>if type(b) is np.str:<EOL><INDENT>assert_equal(type(a), type(b))<EOL><DEDENT>else:<EOL><INDENT>assert_equal(np.asarray(a).dtype.type, np.asarray(b).dtype.type)<EOL><DEDENT>
Assert whether value AND type are the same