Exemplo n.º 1
0
 def test_bad_response_returns_none(self):
     """Test that a bad response form the AP parses to JSON correctly."""
     self.assertTrue(_response_to_json("{(}") == {})
Exemplo n.º 2
0
 def test_good_response_parses(self):
     """Test that the response form the AP parses to JSON correctly."""
     response = _response_to_json(load_fixture('unifi_direct.txt'))
     self.assertTrue(response != {})
 def test_good_response_parses(self):
     """Test that the response form the AP parses to JSON correctly."""
     response = _response_to_json(load_fixture('unifi_direct.txt'))
     self.assertTrue(response != {})
 def test_bad_response_returns_none(self):
     """Test that a bad response form the AP parses to JSON correctly."""
     self.assertTrue(_response_to_json("{(}") == {})
Exemplo n.º 5
0
def test_bad_response_returns_none(hass):
    """Test that a bad response form the AP parses to JSON correctly."""
    assert _response_to_json("{(}") == {}