Lines Matching refs:self
12 def initialize_options(self):
17 def setUp(self):
19 self.cmd = MyCmd(dist)
21 def test_ensure_string_list(self):
23 cmd = self.cmd
31 self.assertRaises(DistutilsOptionError,
34 self.assertRaises(DistutilsOptionError,
39 self.assertEqual(cmd.option1, ['ok', 'dok'])
45 self.assertRaises(DistutilsOptionError, cmd.ensure_string_list,
49 def test_make_file(self):
51 cmd = self.cmd
54 self.assertRaises(TypeError, cmd.make_file,
59 self.assertEqual(exec_msg, 'generating out from in')
64 def test_dump_options(self):
69 cmd = self.cmd
78 self.assertEqual(msgs, wanted)
80 def test_ensure_string(self):
81 cmd = self.cmd
87 self.assertTrue(hasattr(cmd, 'option2'))
90 self.assertRaises(DistutilsOptionError, cmd.ensure_string, 'option3')
92 def test_ensure_filename(self):
93 cmd = self.cmd
97 self.assertRaises(DistutilsOptionError, cmd.ensure_filename, 'option2')
99 def test_ensure_dirname(self):
100 cmd = self.cmd
104 self.assertRaises(DistutilsOptionError, cmd.ensure_dirname, 'option2')
106 def test_debug_print(self):
107 cmd = self.cmd
111 self.assertEqual(stdout.read(), '')
118 self.assertEqual(stdout.read(), 'xxx\n')