def test_has_equal_properties():
    '\n    Assert that has_equal_properties returns True if an object has equivalent properties to a given dict\n    '
    obj = SimpleNamespace(a=1, b=2, c=3)
    assert (has_equal_properties(obj, {}) is True)
    assert (has_equal_properties(obj, dict(a=1, b=2)) is True)
    assert (has_equal_properties(obj, dict(a=1, b=2, c=3)) is True)
    assert (has_equal_properties(obj, dict(a=2)) is False)
    assert (has_equal_properties(obj, dict(d=4)) is False)
Assert that has_equal_properties returns True if an object has equivalent properties to a given dict
def test_has_equal_properties():
    '\n    \n    '
    obj = SimpleNamespace(a=1, b=2, c=3)
    assert (has_equal_properties(obj, {}) is True)
    assert (has_equal_properties(obj, dict(a=1, b=2)) is True)
    assert (has_equal_properties(obj, dict(a=1, b=2, c=3)) is True)
    assert (has_equal_properties(obj, dict(a=2)) is False)
    assert (has_equal_properties(obj, dict(d=4)) is False)