'Test the state attributes.'

def test_device_state_attributes(self):

    self.port.data = {'v_rms': 1.25, 'i_rms': 2.75}
    self.assertEqual({'volts': 1.2, 'amps': 2.8}, self.switch.device_state_attributes)
