'Used to replace Django\'s assertNumQueries with the same capability, with
the addition of the following argument:
table_blacklist (List): A list of table names to filter out of the
set of queries that get counted.'

def assertNumQueries(self, num, func=None, table_blacklist=None, *args, **kwargs):

    using = kwargs.pop('using', DEFAULT_DB_ALIAS)
    conn = connections[using]
    context = _AssertNumQueriesContext(self, num, conn, table_blacklist=table_blacklist)
    if (func is None):
        return context
    with context:
        func(*args, **kwargs)
