Пример #1
0
    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()
Пример #2
0
    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()
Пример #3
0
 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__
Пример #4
0
 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__
Пример #5
0
 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__
Пример #6
0
    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)