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