def test_device_eq(client):
    name = 'pytest'
    d1 = Device(client=client, site_id=1, hostname=name)
    d2 = Device(client=client, site_id=1, hostname=name)
    assert d1 == d2
Test to make sure device comparison works fine
dataset/ETHPy150Open dropbox/pynsot/tests/test_models.py/test_device_eq