示例#1
0
 def test_construct(self):
     test = self.SampleExecTestCase("test_sample_method")
     self.assertEqual(test.script,
                      subunit.join_dir(__file__, 'sample-script.py'))
示例#2
0
 def test_join_dir(self):
     sibling = subunit.join_dir(__file__, 'foo')
     filedir = os.path.abspath(os.path.dirname(__file__))
     expected = os.path.join(filedir, 'foo')
     self.assertEqual(sibling, expected)
 def test_join_dir(self):
     sibling = subunit.join_dir(__file__, 'foo')
     filedir = os.path.abspath(os.path.dirname(__file__))
     expected = os.path.join(filedir, 'foo')
     self.assertEqual(sibling, expected)
 def test_construct(self):
     test = self.SampleExecTestCase("test_sample_method")
     self.assertEqual(test.script,
                      subunit.join_dir(__file__, 'sample-script.py'))
示例#5
0
 def test_join_dir(self):
     sibling = subunit.join_dir(__file__, 'foo')
     expected = '%s/foo' % (os.path.split(__file__)[0],)
     self.assertEqual(sibling, expected)
示例#6
0
 def test_join_dir(self):
     sibling = subunit.join_dir(__file__, 'foo')
     expected = '%s/foo' % (os.path.split(__file__)[0], )
     self.assertEqual(sibling, expected)