Exemple #1
0
    def test_equality(self):
        a = InvocationInfo(self.hostname, self.req_id)
        b = InvocationInfo('', self.req_id, 0)
        c = InvocationInfo(self.hostname, self.req_id, 20)

        assert a != b
        assert hash(a) != hash(b)
        assert a is not b

        assert a == c
Exemple #2
0
def invocation_info():
    return InvocationInfo(TestInvocationInfo.hostname, TestInvocationInfo.req_id,
                          TestInvocationInfo.exec_duration_millis)