#NEWLINE# def test_distinct_count( ) : #NEWLINE# #INDENT# t2 = t [ 'name' ] . distinct ( ) #NEWLINE# gby = by ( t2 , total = t2 . count ( ) ) #NEWLINE# result = set ( compute ( gby , data ) ) #NEWLINE# assert ( result == set ( [ ( 'Alice' , 1 ) , ( 'Bob' , 1 ) ] ) )