<s> import os <EOL> from st2common . bootstrap import aliasesregistrar <EOL> from st2tests import DbTestCase , fixturesloader <EOL> ALIASES_FIXTURE_PACK_PATH = os . path . join ( fixturesloader . get_fixtures_base_path ( ) , '<STR_LIT>' ) <EOL> ALIASES_FIXTURE_PATH = os . path . join ( ALIASES_FIXTURE_PACK_PATH , '<STR_LIT>' ) <EOL> class TestAliasRegistrar ( DbTestCase ) : <EOL> def test_alias_registration ( self ) : <EOL> count = aliasesregistrar . register_aliases ( pack_dir = ALIASES_FIXTURE_PACK_PATH ) <EOL> self . assertEqual ( count , len ( os . listdir ( ALIASES_FIXTURE_PATH ) ) ) </s>
