Lines Matching refs:ctor
23 def _test_arg_valid(self, ctor, arg): argument
24 self.assertRaises(TypeError, ctor)
25 self.assertRaises(TypeError, ctor, None)
26 self.assertRaises(TypeError, ctor, arg, bad_attr = 0)
27 self.assertRaises(TypeError, ctor, arg, delimiter = 0)
28 self.assertRaises(TypeError, ctor, arg, delimiter = 'XX')
29 self.assertRaises(csv.Error, ctor, arg, 'foo')
30 self.assertRaises(TypeError, ctor, arg, delimiter=None)
31 self.assertRaises(TypeError, ctor, arg, delimiter=1)
32 self.assertRaises(TypeError, ctor, arg, quotechar=1)
33 self.assertRaises(TypeError, ctor, arg, lineterminator=None)
34 self.assertRaises(TypeError, ctor, arg, lineterminator=1)
35 self.assertRaises(TypeError, ctor, arg, quoting=None)
36 self.assertRaises(TypeError, ctor, arg,
38 self.assertRaises(TypeError, ctor, arg,
47 def _test_default_attrs(self, ctor, *args): argument
48 obj = ctor(*args)
71 def _test_kw_attrs(self, ctor, *args): argument
77 obj = ctor(*args, **kwargs)
93 def _test_dialect_attrs(self, ctor, *args): argument
105 obj = ctor(*args)