MCPcopy Create free account
hub / github.com/apify/crawlee-python / test_comparisons

Function test_comparisons

tests/unit/_utils/test_byte_size.py:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def test_comparisons() -> None:
36 size1 = ByteSize(1024)
37 size2 = ByteSize(512)
38
39 assert size1 > size2
40 assert size1 >= size2
41 assert size2 < size1
42 assert size2 <= size1
43 assert size1 == ByteSize(1024)
44 assert size1 != size2
45
46
47def test_additions() -> None:

Callers

nothing calls this directly

Calls 1

ByteSizeClass · 0.90

Tested by

no test coverage detected