def test_construct(self): test = self.SampleExecTestCase("test_sample_method") self.assertEqual(test.script, subunit.join_dir(__file__, 'sample-script.py'))
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') expected = '%s/foo' % (os.path.split(__file__)[0],) self.assertEqual(sibling, expected)
def test_join_dir(self): sibling = subunit.join_dir(__file__, 'foo') expected = '%s/foo' % (os.path.split(__file__)[0], ) self.assertEqual(sibling, expected)