コード例 #1
0
def test_can_trace_int():
    assert can_trace_type(1)
コード例 #2
0
def test_can_trace_float():
    assert can_trace_type(1.5)
コード例 #3
0
def test_no_trace_module():
    assert not can_trace_type(config)
コード例 #4
0
def test_can_trace_dict():
    assert can_trace_type(dict(kwargs=dict(a=1)))
コード例 #5
0
def test_can_trace_string():
    assert can_trace_type('some_str')
コード例 #6
0
def test_can_trace_none():
    assert can_trace_type(None)
コード例 #7
0
def test_can_trace_bool():
    assert can_trace_type(True)