'Test the state of digits.'

def test_state_digits(self):

    self.port.tag = 'didyoucheckthedict?'
    self.port.value = 1.25
    with mock.patch.dict(mfi.DIGITS, {'didyoucheckthedict?': 1}):
        self.assertEqual(1.2, self.sensor.state)
    with mock.patch.dict(mfi.DIGITS, {}):
        self.assertEqual(1.0, self.sensor.state)
