[tests/theme] Add tests for theme.py

This commit is contained in:
Tobi-wan Kenobi 2017-03-04 14:17:27 +01:00
parent 64523119af
commit 6a14681a65
3 changed files with 132 additions and 5 deletions

View file

@ -90,11 +90,6 @@ class Theme(object):
"""Return the SBW"""
return self._get(widget, "separator-block-width", None)
def loads(self, data):
"""Initialize the theme from a JSON string"""
theme = json.loads(data)
self._init(theme)
def _load_icons(self, name):
"""Load icons for a theme"""
path = "{}/icons/".format(theme_path())