def test_eq():
    reported_at = arrow.utcnow()
    u1 = Indicator(indicator='192.168.1.1', reported_at=reported_at)
    u2 = Indicator(indicator='192.168.1.1', reported_at=reported_at)

    u2.uuid = u1.uuid
    assert u1 == u2
Exemple #2
0
def test_eq():
    u1 = Indicator(indicator='192.168.1.1')
    u2 = Indicator(indicator='192.168.1.1')

    u2.uuid = u1.uuid
    assert u1 == u2
def test_eq():
    u1 = Indicator(indicator='192.168.1.1')
    u2 = Indicator(indicator='192.168.1.1')

    u2.uuid = u1.uuid
    assert u1 == u2