Example #1
0
def test_new_from_dict():
    """
    test to_dict function for Wind object
    create a new wind object and make sure it has same properties
    """

    rm = RandomMover()
    print rm.to_dict('create')
    rm2 = RandomMover.new_from_dict(rm.to_dict('create'))
    assert rm == rm2