示例#1
0
def test_stats_callback():
    # Initialize object
    tegra = Tegrastats('/usr/bin/tegrastats', 100)
    # Open data
    tegra.open(check_tegra)
    # Close connection
    tegra.close()
示例#2
0
def test_open():
    # Initialize object
    tegra = Tegrastats('/usr/bin/tegrastats', 100)
    # Open data
    tegra.open()
    # Close connection
    tegra.close()
    assert True