Beispiel #1
0
    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)')))
Beispiel #2
0
    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)')))
Beispiel #3
0
 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)")))
Beispiel #4
0
 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)")))