def test_color(self): """Test the standard busy indicator, default options and color.""" with lsl.testing.SilentVerbose(): bi = busy.BusyIndicator(color='green') bi.start() time.sleep(1) bi.stop()
def test_default(self): """Test the standard busy indicator, default options.""" with lsl.testing.SilentVerbose(): bi = busy.BusyIndicator() bi.start() time.sleep(1) bi.stop()
def test_context(self): """Test the standard busy indicator as a context manager.""" sys.stdout = StringIO() with busy.BusyIndicator() as bi: time.sleep(1) sys.stdout = sys.__stdout__
def test_color(self): """Test the standard busy indicator, default options and color.""" bi = busy.BusyIndicator(color='green') sys.stdout = StringIO() bi.start() time.sleep(1) bi.stop() sys.stdout = sys.__stdout__
def test_default(self): """Test the standard busy indicator, default options.""" bi = busy.BusyIndicator() sys.stdout = StringIO() bi.start() time.sleep(1) bi.stop() sys.stdout = sys.__stdout__
def test_context(self): """Test the standard busy indicator as a context manager.""" with lsl.testing.SilentVerbose(): with busy.BusyIndicator() as bi: time.sleep(1)