Пример #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)
Пример #3
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)
Пример #4
0
 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)