Lines Matching refs:assertThat

31 from cert.truth import assertThat
208 assertThat(True).isTrue()
209 assertThat(False).isFalse()
213 assertThat(False).isTrue()
220 assertThat(True).isFalse()
226 assertThat("this").isEqualTo("this")
227 assertThat("this").isNotEqualTo("that")
228 assertThat(None).isNone()
229 assertThat("this").isNotNone()
233 assertThat("this").isEqualTo("that")
240 assertThat("this").isNotEqualTo("this")
247 assertThat("this").isNone()
254 assertThat(None).isNotNone()
261 assertThat(event_stream).emits(lambda data: data.value_ == 1)
265assertThat(event_stream).emits(lambda data: data.value_ == 1).then(lambda data: data.value_ == 3)
270 assertThat(event_stream).emits(lambda data: data.value_ == 4)
279assertThat(event_stream).emits(lambda data: data.value_ == 1).emits(lambda data: data.value_ == 4)
287assertThat(event_stream).emits(lambda data: data.value_ == 1, lambda data: data.value_ == 2).inOrd…
291 assertThat(event_stream).emits(
298assertThat(event_stream).emits(lambda data: data.value_ == 2, lambda data: data.value_ == 1).inOrd…
307 assertThat(event_stream).emits(lambda data: data.value_ == 4,
316 assertThat(event_stream).emitsNone(
322assertThat(event_stream).emitsNone(lambda data: data.value_ == 4, timeout=timedelta(seconds=1))
327assertThat(event_stream).emitsNone(lambda data: data.value_ == 2, timeout=timedelta(seconds=1))
335 assertThat(event_stream).emitsNone(timeout=timedelta(milliseconds=10)).thenNone(
340 assertThat(event_stream).emitsNone(timeout=timedelta(seconds=1.0))
345 assertThat(event_stream).emitsNone(timeout=timedelta(seconds=1))
354 assertThat(filtered_event_stream)\
465 assertThat(thing.count).isEqualTo(1)
466 assertThat(thing.captured).isEqualTo(["A"])
479 assertThat(thing.count).isEqualTo(1)
480 assertThat(thing.captured).isEqualTo(["A"])
491 assertThat(thing.count).isEqualTo(3)
492 assertThat(thing.captured).isEqualTo(["A", "B", "C"])
503 assertThat(thing.count).isEqualTo(3)
504 assertThat(thing.captured).isEqualTo(["A", "B", "C"])
516 assertThat(thing.count).isEqualTo(1)
517 assertThat(thing.captured).isEqualTo(["B"])
529 assertThat(thing.count).isEqualTo(2)
530 assertThat(thing.captured).isEqualTo(["A", "B"])
546 assertThat(thing.count).isEqualTo(3)
547 assertThat(thing.captured).isEqualTo(["B", "C", "C"])
570 assertThat(thing.unhandled_count).isEqualTo(1)
582 assertThat(thing.count).isEqualTo(1)
583 assertThat(thing.captured).isEqualTo(["A"])
594 assertThat(thing.count).isEqualTo(1)
595 assertThat(thing.captured).isEqualTo(["A"])
606 assertThat(thing.count).isEqualTo(1)
607 assertThat(thing.captured).isEqualTo(["A"])
617 assertThat(wait_until(thing).test_request(lambda obj: obj == "A").times(1)).isFalse()
628 assertThat(thing.unhandled_count).isEqualTo(1)
642 assertThat(thing.count).isEqualTo(2)
643 assertThat(thing.captured).isEqualTo(["A", "A"])
657 assertThat(thing.count).isEqualTo(2)
658 assertThat(thing.captured).isEqualTo(["A", "B"])
670 assertThat(wait_until(thing).test_request(lambda obj: obj == "A").times(2)).isFalse()