'"Testing invalid credential handling.'

@patch('requests.get', side_effect=mocked_requests)
@patch('requests.post', side_effect=mocked_requests)
def test_invalid_credential(self, mock_get, mock_post):

    config = {DOMAIN: xiaomi.PLATFORM_SCHEMA({CONF_PLATFORM: xiaomi.DOMAIN, CONF_HOST: '192.168.0.1', CONF_USERNAME: INVALID_USERNAME, CONF_PASSWORD: 'passwordTest'})}
    self.assertIsNone(get_scanner(self.hass, config))
