Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad NameLoad Expr Call NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign ListStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign ListStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign ListStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A os django.test TestCase casexml.apps.case.tests.util delete_all_cases corehq.apps.commtrack.tests.util bootstrap_domain corehq.apps.locations.models Location LocationType custom.openlmis.api get_facilities custom.openlmis.commtrack sync_facility_to_supply_point get_supply_point N/A TEST_DOMAIN openlmis-commtrack-facility-test FacilitySyncTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self datapath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data N/A N/A bootstrap_domain TEST_DOMAIN N/A N/A delete_all_cases N/A loc N/A N/A Location by_domain TEST_DOMAIN N/A N/A N/A N/A loc delete N/A N/A N/A N/A LocationType objects get_or_create domain TEST_DOMAIN name Lvl3 Hospital N/A _get_facilities N/A N/A self N/A N/A N/A N/A open N/A N/A N/A os path join N/A self datapath recent_facilities.rss f N/A N/A N/A list N/A get_facilities N/A N/A f read N/A testCreateSupplyPointFromFacility N/A N/A self N/A N/A N/A N/A f1 f2 N/A N/A self _get_facilities N/A N/A N/A self assertEqual 0 N/A len N/A list N/A N/A Location by_domain TEST_DOMAIN N/A sp1 N/A sync_facility_to_supply_point TEST_DOMAIN f1 N/A locs N/A list N/A N/A Location by_domain TEST_DOMAIN N/A N/A N/A self assertEqual 1 N/A len locs N/A N/A loc1 locs N/A N/A N/A self assertEqual N/A f1 name N/A loc1 name N/A N/A N/A self assertEqual N/A f1 code N/A loc1 external_id N/A N/A N/A self assertEqual N/A f1 name N/A sp1 name N/A N/A N/A self assertEqual N/A f1 code N/A sp1 external_id N/A N/A N/A self assertEqual N/A N/A sp1 location location_id N/A loc1 _id N/A testGetSupplyPoint N/A N/A self N/A N/A N/A N/A f1 f2 N/A N/A self _get_facilities N/A N/A N/A self assertTrue N/A N/A get_supply_point TEST_DOMAIN f1 None N/A sp1 N/A sync_facility_to_supply_point TEST_DOMAIN f1 N/A spback N/A get_supply_point TEST_DOMAIN f1 N/A N/A N/A self assertTrue N/A spback None N/A N/A N/A self assertEqual N/A sp1 case_id N/A spback case_id N/A spback N/A get_supply_point TEST_DOMAIN N/A f1 code N/A N/A N/A self assertEqual N/A sp1 case_id N/A spback case_id N/A N/A