async def test_expansion_and_renamed_ordinal_23_and_add_count(self): """Resolution Guidance Test - Expansion & Rename - Ordinal 2 to 3 and AddCount""" test_name = 'test_expansion_and_renamed_ordinal_23_and_add_count' entity_name = 'EmployeeAddresses' expectedContext_default = AttributeContextExpectedValue() expectedContext_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly = AttributeContextExpectedValue() expectedContext_structured = AttributeContextExpectedValue() expectedContext_normalized_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized_structured = AttributeContextExpectedValue() expected_default = [] expected_normalized = [] expected_referenceOnly = [] expected_structured = [] expected_normalized_structured = [] expected_referenceOnly_normalized = [] expected_referenceOnly_structured = [] expected_referenceOnly_normalized_structured = [] await self.run_test_with_values( test_name, entity_name, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured )
async def test_polymorphism_with_rename_as_member(self): """Resolution Guidance Test - Polymorphism With Rename As Member""" test_name = 'test_polymorphism_with_rename_as_member' entity_name = 'Customer' # Refer to bug https://powerbi.visualstudio.com/Power%20Query/_workitems/edit/327155 expectedContext_default = AttributeContextExpectedValue() expectedContext_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly = AttributeContextExpectedValue() expectedContext_structured = AttributeContextExpectedValue() expectedContext_normalized_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized = AttributeContextExpectedValue( ) expectedContext_referenceOnly_structured = AttributeContextExpectedValue( ) expectedContext_referenceOnly_normalized_structured = AttributeContextExpectedValue( ) # Refer to bug https://powerbi.visualstudio.com/Power%20Query/_workitems/edit/327155 expected_default = [] expected_normalized = [] expected_referenceOnly = [] expected_structured = [] expected_normalized_structured = [] expected_referenceOnly_normalized = [] expected_referenceOnly_structured = [] expected_referenceOnly_normalized_structured = [] await self.run_test_with_values( test_name, entity_name, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured)
async def test_add_in_support_of_with_is_correlated_with(self): """Resolution Guidance Test - AddInSupportOf with IsCorrelatedWith""" test_name = 'test_add_in_support_of_with_is_correlated_with' entity_name = 'Product' expectedContext_default = AttributeContextExpectedValue() expectedContext_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly = AttributeContextExpectedValue() expectedContext_structured = AttributeContextExpectedValue() expectedContext_normalized_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized = AttributeContextExpectedValue( ) expectedContext_referenceOnly_structured = AttributeContextExpectedValue( ) expectedContext_referenceOnly_normalized_structured = AttributeContextExpectedValue( ) expected_default = [] expected_normalized = [] expected_referenceOnly = [] expected_structured = [] expected_normalized_structured = [] expected_referenceOnly_normalized = [] expected_referenceOnly_structured = [] expected_referenceOnly_normalized_structured = [] await self.run_test_with_values( test_name, entity_name, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured)
async def test_filter_in_some(self): """Resolution Guidance Test - FilterIn - Some""" test_name = 'test_filter_in_some' entity_name = 'Employee' expectedContext_default = AttributeContextExpectedValue() expectedContext_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly = AttributeContextExpectedValue() expectedContext_structured = AttributeContextExpectedValue() expectedContext_normalized_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized = AttributeContextExpectedValue( ) expectedContext_referenceOnly_structured = AttributeContextExpectedValue( ) expectedContext_referenceOnly_normalized_structured = AttributeContextExpectedValue( ) expected_default = [] expected_normalized = [] expected_referenceOnly = [] expected_structured = [] expected_normalized_structured = [] expected_referenceOnly_normalized = [] expected_referenceOnly_structured = [] expected_referenceOnly_normalized_structured = [] await self.run_test_with_values( test_name, entity_name, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured)
async def test_foreign_key_one_to_many_cardinality(self): """Resolution Guidance Test - One:Many Cardinality""" test_name = 'test_foreign_key_one_to_many_cardinality' entity_name = 'Team' expectedContext_default = AttributeContextExpectedValue() expectedContext_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly = AttributeContextExpectedValue() expectedContext_structured = AttributeContextExpectedValue() expectedContext_normalized_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized_structured = AttributeContextExpectedValue() expected_default = [] expected_normalized = [] expected_referenceOnly = [] expected_structured = [] expected_normalized_structured = [] expected_referenceOnly_normalized = [] expected_referenceOnly_structured = [] expected_referenceOnly_normalized_structured = [] await self.run_test_with_values( test_name, entity_name, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured ) entity_name = 'Employee' expectedContext_default = AttributeContextExpectedValue() expectedContext_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly = AttributeContextExpectedValue() expectedContext_structured = AttributeContextExpectedValue() expectedContext_normalized_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized_structured = AttributeContextExpectedValue() expected_default = [] expected_normalized = [] expected_referenceOnly = [] expected_structured = [] expected_normalized_structured = [] expected_referenceOnly_normalized = [] expected_referenceOnly_structured = [] expected_referenceOnly_normalized_structured = [] await self.run_test_with_values( test_name, entity_name, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured )
async def test_filter_in_all_with_attribute_group_ref(self): """Resolution Guidance Test - FilterIn - All With AttributeGroupRef""" test_name = 'test_filter_in_all_with_attribute_group_ref' entity_name = 'Employee' expectedContext_default = AttributeContextExpectedValue() expectedContext_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly = AttributeContextExpectedValue() expectedContext_structured = AttributeContextExpectedValue() expectedContext_normalized_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized = AttributeContextExpectedValue( ) expectedContext_referenceOnly_structured = AttributeContextExpectedValue( ) expectedContext_referenceOnly_normalized_structured = AttributeContextExpectedValue( ) expected_default = [] expected_normalized = [] expected_referenceOnly = [] expected_structured = [] expected_normalized_structured = [] expected_referenceOnly_normalized = [] expected_referenceOnly_structured = [] expected_referenceOnly_normalized_structured = [] await self.run_test_with_values( test_name, entity_name, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured) entity_name = 'EmployeeNames' expectedContext_default = AttributeContextExpectedValue() expectedContext_normalized = AttributeContextExpectedValue() expectedContext_referenceOnly = AttributeContextExpectedValue() expectedContext_structured = AttributeContextExpectedValue() expectedContext_normalized_structured = AttributeContextExpectedValue() expectedContext_referenceOnly_normalized = AttributeContextExpectedValue( ) expectedContext_referenceOnly_structured = AttributeContextExpectedValue( ) expectedContext_referenceOnly_normalized_structured = AttributeContextExpectedValue( ) expected_default = [] expected_normalized = [] expected_referenceOnly = [] expected_structured = [] expected_normalized_structured = [] expected_referenceOnly_normalized = [] expected_referenceOnly_structured = [] expected_referenceOnly_normalized_structured = [] await self.run_test_with_values( test_name, entity_name, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured)