Testing Helpers¶
API¶
Utilities used in testing of UrbanSim.
-
urbansim.utils.testing.
assert_frames_equal
(actual, expected, use_close=False)[source]¶ Compare DataFrame items by index and column and raise AssertionError if any item is not equal.
Ordering is unimportant, items are compared only by label. NaN and infinite values are supported.
- Parameters
- actualpandas.DataFrame
- expectedpandas.DataFrame
- use_closebool, optional
If True, use numpy.testing.assert_allclose instead of numpy.testing.assert_equal.