def test_distinct_by_method_with_param(self): self.assertEqual(str(Sum('col').distinct(False)), 'SUM("col")')
def test_distinct(self): self.assertEqual(str(Sum('col', True)), 'SUM(DISTINCT "col")')
def test_distinct_by_method(self): self.assertEqual(str(Sum('col').distinct()), 'SUM(DISTINCT "col")')
def test_normal(self): self.assertEqual(str(Sum('col')), 'SUM("col")')
def test_distinct_by_method_with_param(self): assert str(Sum('col').distinct(False)) == 'SUM("col")'
def test_distinct_by_method(self): assert str(Sum('col').distinct()) == 'SUM(DISTINCT "col")'
def test_distinct(self): assert str(Sum('col', True)) == 'SUM(DISTINCT "col")'
def test_normal(self): assert str(Sum('col')) == 'SUM("col")'