

def test_register_from_pack_success(self):
    pack_dir = os.path.join(get_fixtures_base_path(), 'dummy_pack_1')
    cmd = (BASE_REGISTER_ACTIONS_CMD_ARGS + [('--register-pack=%s' % pack_dir)])
    (exit_code, _, stderr) = run_command(cmd=cmd)
    self.assertTrue(('Registered 1 actions.' in stderr))
    self.assertEqual(exit_code, 0)

dataset/ETHPy150Open StackStorm/st2/st2common/tests/integration/test_register_content_script.py ContentRegisterScripTestCase.test_register_from_pack_success/original