コード例 #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))