def assert_static_analysis(case, actual, desired):
 a = set(actual)
 d = set(desired)
 assert (actual == desired), ('\nTest %r failed.\nnot raised  = %s\nunspecified = %s\n' % (case, sorted((d - a)), sorted((a - d))))

def assert_static_analysis ( case , actual , desired ) : a = set ( actual ) d = set ( desired ) assert ( actual == desired ) , ( '\nTest %r failed.\nnot raised  = %s\nunspecified = %s\n' % ( case , sorted ( ( d - a ) ) , sorted ( ( a - d ) ) ) )
a nicer formatting for static analysis tests .