def test__options_exception(mock__http_request): mock__http_request.side_effect = [ConnectionError] test_ksh = KodakSmartHome("fake_user", "fake_pass") with pytest.raises(ConnectionError): test_ksh._options()
def test__options(mock__http_request): mock__http_request.return_value = True test_ksh = KodakSmartHome("fake_user", "fake_pass") assert test_ksh._options()