'Test to verify to that aggregates with different signatures are differentiated in metadata
test_same_name_diff_types Creates two Aggregates. One with the same name but a slightly different
signature. Then ensures that both are surfaced separately in our metadata.
@since 2.6.0
@jira_ticket PYTHON-211
@expected_result aggregates with the same name but different signatures should be surfaced separately
@test_category function'

def test_same_name_diff_types(self):

    kwargs = self.make_aggregate_kwargs('sum_int', 'int', init_cond='0')
    with self.VerifiedAggregate(self, **kwargs):
        kwargs['state_func'] = 'sum_int_two'
        kwargs['argument_types'] = ['int', 'int']
        with self.VerifiedAggregate(self, **kwargs):
            aggregates = [a for a in self.keyspace_aggregate_meta.values() if (a.name == kwargs['name'])]
            self.assertEqual(len(aggregates), 2)
            self.assertNotEqual(aggregates[0].argument_types, aggregates[1].argument_types)
