f9d712d175ab8e956181c8e61d3c4b05a58d261d,homeassistant/test.py,TestHTTPInterface,test_api_password,#TestHTTPInterface#,74

Before Change



        self.assertEqual(req.status_code, 401)

        req = requests.post("{}/api/state/change".format(HTTP_BASE_URL,
                data={"api_password":"not the password"}))

        self.assertEqual(req.status_code, 401)

After Change


         Test if we get access denied if we omit or provide
            a wrong api password. 
        req = requests.post(
                self._url(hah.URL_API_STATES_CATEGORY.format("test")))

        self.assertEqual(req.status_code, 401)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: f9d712d175ab8e956181c8e61d3c4b05a58d261d
Time: 2013-10-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTPInterface
Method Name: test_api_password


Project Name: home-assistant/home-assistant
Commit Name: f9d712d175ab8e956181c8e61d3c4b05a58d261d
Time: 2013-10-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTPInterface
Method Name: test_api_get_state


Project Name: home-assistant/home-assistant
Commit Name: f9d712d175ab8e956181c8e61d3c4b05a58d261d
Time: 2013-10-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTPInterface
Method Name: test_api_state_change_of_non_existing_category


Project Name: home-assistant/home-assistant
Commit Name: f9d712d175ab8e956181c8e61d3c4b05a58d261d
Time: 2013-10-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTPInterface
Method Name: test_api_fire_event_with_invalid_json


Project Name: home-assistant/home-assistant
Commit Name: f9d712d175ab8e956181c8e61d3c4b05a58d261d
Time: 2013-10-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTPInterface
Method Name: test_debug_state_change


Project Name: home-assistant/home-assistant
Commit Name: f9d712d175ab8e956181c8e61d3c4b05a58d261d
Time: 2013-10-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTPInterface
Method Name: test_api_fire_event_with_data


Project Name: home-assistant/home-assistant
Commit Name: f9d712d175ab8e956181c8e61d3c4b05a58d261d
Time: 2013-10-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTPInterface
Method Name: test_api_state_change


Project Name: home-assistant/home-assistant
Commit Name: f9d712d175ab8e956181c8e61d3c4b05a58d261d
Time: 2013-10-29
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTPInterface
Method Name: test_api_fire_event_with_no_data