예제 #1
0
 def test_path(self):
     self.assertTrue(common.not_buildroot(self.Path('foo')))
     self.assertFalse(common.not_buildroot(self.Path('.')))
     self.assertTrue(common.not_buildroot(self.Path('.', Root.srcdir)))
예제 #2
0
 def test_misc(self):
     self.assertTrue(common.not_buildroot('foo'))
예제 #3
0
 def test_none(self):
     self.assertFalse(common.not_buildroot(None))