core/tests
MartinHjelmare c56701baaf Refactor reproduce_state for scene component
* Add tests to reach full coverage for helpers/state.py.
* Refactor reproduce_state function in helpers/state.py. Add two dicts,
	as global constants, service_attributes and service_to_state. Use
	these in combination with the dict of services per domain from
	ServiceRegistry, to find the correct service to use in a scene state
	change.
* Use break statement in for loop, to break if service was selected
	to update state, in preference to update state attributes, ie state
	update takes precedence.
* Add ATTR_CODE and ATTR_CODE_FORMAT in const. Import these in
	alarm_control_panel and lock platforms instead of making duplicate
	constants in multiple modules.
* Use ATTR_MEDIA_CONTENT_TYPE and ATTR_MEDIA_CONTENT_ID in media_player
	platform in SERVICE_PLAY_MEDIA and play_media methods, instead of
	'media_type' and 'media_id'.
* Fix PEP257 in modified files.
2016-03-09 18:52:05 +01:00
..
cassettes VCR YR sensor test 2015-12-27 17:37:32 -08:00
components Fix PEP257 issues 2016-03-09 10:25:50 +01:00
config/custom_components Fix PEP257 issues 2016-03-09 11:15:04 +01:00
helpers Refactor reproduce_state for scene component 2016-03-09 18:52:05 +01:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
util Fix PEP257 issues 2016-03-09 11:15:04 +01:00
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
common.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_bootstrap.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_config.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_core.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_loader.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_remote.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00