def test_glob(self): self.uut = Setting('key', '.', origin=os.path.join('test (1)', 'somefile')) self.assertEqual(glob(self.uut), glob_escape(os.path.abspath('test (1)'))) self.uut = Setting('key', '.', origin=SourcePosition( os.path.join('test (1)', 'somefile'))) self.assertEqual(glob(self.uut), glob_escape(os.path.abspath('test (1)')))
def test_glob(self): self.uut = Setting("key", ".", origin=os.path.join("test (1)", "somefile")) self.assertEqual(glob(self.uut), glob_escape(os.path.abspath("test (1)")))