ubuntu@d77f9973b032:~/charms/xenial/rsyslog$ make test
py34 create: /home/ubuntu/charms/xenial/rsyslog/.tox/py34
ERROR: InterpreterNotFound: python3.4
py35 installed: amulet==1.17.2,coverage==4.2,flake8==3.0.4,Jinja2==2.8,jujubundlelib==0.5.2,libcharmstore==0.0.3,MarkupSafe==0.23,mccabe==0.5.2,mock==1.0.1,nose==1.3.1,path.py==8.2.1,pkg-resources==0.0.0,pycodestyle==2.0.0,pycurl==7.43.0,pyflakes==1.2.3,pygobject==3.20.0,python-apt==1.1.0b1,PyYAML==3.12,requests==2.11.1,six==1.10.0,theblues==0.3.6,unattended-upgrades==0.1,virtualenv==15.0.1
py35 runtests: PYTHONHASHSEED='156015559'
py35 runtests: commands[0] | nosetests --nologcapture unit_tests
Check if config-changed is executed correctly ... ERROR
Check if configuration templates are created correctly ( nova_logs: False ) ... ok
Check if configuration templates are created correctly ( nova_logs: True ) ... ok
Check if install hooks is correctly executed ... ok
Check if start hook is correctly executed ... ok
Check if start hooks is correctly executed ... ok
Check if charm upgrade hooks is correctly executed ... ok
======================================================================
ERROR: Check if config-changed is executed correctly
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/charms/xenial/rsyslog/unit_tests/test_hooks.py", line 148, in test_config_changed
hooks.config_changed()
File "/home/ubuntu/charms/xenial/rsyslog/hooks/hooks.py", line 143, in config_changed
update_logrotate_config(**config)
File "/home/ubuntu/charms/xenial/rsyslog/hooks/hooks.py", line 113, in update_logrotate_config
template = get_config_template(template_name)
File "/home/ubuntu/charms/xenial/rsyslog/hooks/hooks.py", line 63, in get_config_template
return template_env.get_template(name)
File "/home/ubuntu/charms/xenial/rsyslog/.tox/py35/lib/python3.5/site-packages/jinja2/environment.py", line 812, in get_template
return self._load_template(name, self.make_globals(globals))
File "/home/ubuntu/charms/xenial/rsyslog/.tox/py35/lib/python3.5/site-packages/jinja2/environment.py", line 774, in _load_template
cache_key = self.loader.get_source(self, name)[1]
File "/home/ubuntu/charms/xenial/rsyslog/.tox/py35/lib/python3.5/site-packages/jinja2/loaders.py", line 175, in get_source
contents = f.read().decode(self.encoding)
AttributeError: 'str' object has no attribute 'decode'