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)))
def test_misc(self): self.assertTrue(common.not_buildroot('foo'))
def test_none(self): self.assertFalse(common.not_buildroot(None))