BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
microscope.testsuite.test_devices.TestDummyLightSource Class Reference
Inheritance diagram for microscope.testsuite.test_devices.TestDummyLightSource:
microscope.testsuite.test_devices.LightSourceTests microscope.testsuite.test_devices.DeviceTests

Public Member Functions

def setUp (self)
 
def test_get_is_on (self)
 
- Public Member Functions inherited from microscope.testsuite.test_devices.LightSourceTests
def assertEqualMW (self, first, second, msg=None)
 
def test_get_is_on (self)
 
def test_off_after_constructor (self)
 
def test_turning_on_and_off (self)
 
def test_shutdown (self)
 
def test_power_when_off (self)
 
def test_setting_power (self)
 
def test_setting_power_outside_limit (self)
 
def test_status (self)
 
- Public Member Functions inherited from microscope.testsuite.test_devices.DeviceTests
def test_on_and_off (self)
 
def test_enable_and_disable (self)
 
def test_enable_enabled (self)
 
def test_disable_disabled (self)
 

Public Attributes

 device
 
 fake
 

Detailed Description

Definition at line 337 of file test_devices.py.

Member Function Documentation

◆ setUp()

def microscope.testsuite.test_devices.TestDummyLightSource.setUp (   self)

Definition at line 338 of file test_devices.py.

338 def setUp(self):
339 self.device = simulators.SimulatedLightSource()
340
341 # TODO: we need to rethink the test so this is not needed.
342 self.fake = self.device
343 self.fake.default_power = self.fake._set_point
344 self.fake.min_power = 0.0
345 self.fake.max_power = 100.0
346

◆ test_get_is_on()

def microscope.testsuite.test_devices.TestDummyLightSource.test_get_is_on (   self)

Reimplemented from microscope.testsuite.test_devices.LightSourceTests.

Definition at line 347 of file test_devices.py.

347 def test_get_is_on(self):
348 # TODO: this test assumes the connection property to be the
349 # fake. We need to rethink how the mock lasers work.
350 pass
351
352

Member Data Documentation

◆ device

◆ fake

microscope.testsuite.test_devices.TestDummyLightSource.fake

Definition at line 342 of file test_devices.py.


The documentation for this class was generated from the following file: