class TestOlfactometer(): def test_Olfactometer_without_threads(self): self.o = Olfactometer(use_threads=False, test_mode=True) self._test() def test_Olfactometer_with_threads(self): self.o = Olfactometer(use_threads=True, test_mode=True) self._test() def _test(self): self.o.add_stimulus('Smell', bitmask=[1, 0, 0, 0, 0, 0, 0, 0]) self.o.select_stimulus('Smell') self.o.stimulate()
def test_Olfactometer_with_threads(self): self.o = Olfactometer(use_threads=True, test_mode=True) self._test()