'Assert that an object is a Call with the given identifier and
argument count.'

def _assert_call(self, obj, ident, numargs):

    self.assertTrue(isinstance(obj, functemplate.Call), (u'not    a    Call:    %s' % repr(obj)))
    self.assertEqual(obj.ident, ident, (u'wrong    identifier:    %s    vs.    %s' % (repr(obj.ident), repr(ident))))
    self.assertEqual(len(obj.args), numargs, (u'wrong    argument    count    in    %s:    %i    vs.    %i' % (repr(obj.ident), len(obj.args), numargs)))
