6
from pkg_resources import resource_filename
8
# allow importing actions from the hooks directory
9
sys.path.append(resource_filename(__name__, '../hooks'))
13
class TestActions(unittest.TestCase):
14
@mock.patch('charmhelpers.core.hookenv.log')
15
def test_log_start(self, log):
16
actions.log_start('test-service')
17
log.assert_called_once_with('nedge-node starting')
20
if __name__ == '__main__':