"""
Braubuddy Dummy thermometer unit tests
"""

import unittest
from mock import patch, call, MagicMock
from braubuddy.thermometer import dummy 
from braubuddy.thermometer import DeviceError
from braubuddy.thermometer import ReadError

class TestDummy(unittest.TestCase):

    def test_within_bounds(self):
        """Dummy thermometer returns values within bounds."""

        lower_bound = 20
        upper_bound = 30
        allowed_range = range(lower_bound, upper_bound)
        test_dummy = dummy.DummyThermometer(
            lower_bound = lower_bound,
            upper_bound = upper_bound)
        for i in range(0,1000):
            self.assertIn(test_dummy.get_temperature(), allowed_range)

"""
Braubuddy Dummy thermometer unit tests
"""

import unittest
from mock import patch, call, MagicMock
from braubuddy.thermometer import dummy 

class TestDummy(unittest.TestCase):

    def test_within_bounds(self):
        """Dummy thermometer returns values within bounds."""

        lower_bound = 20
        upper_bound = 30
        allowed_range = range(lower_bound, upper_bound)
        test_dummy = dummy.DummyThermometer(
            lower_bound = lower_bound,
            upper_bound = upper_bound)
        for i in range(0,1000):
            self.assertIn(test_dummy.get_temperature(), allowed_range)

Remove unnecessary imports form dummy tests.