def testNotACheckout(self): scm = Mercurial() self.destroy() self.assertEqual(scm.is_valid_sandbox(self.packagedir), False)
def testNotExists(self): scm = Mercurial() self.assertEqual(scm.is_valid_sandbox('foo'), False)
def testNotADir(self): scm = Mercurial() self.assertEqual( scm.is_valid_sandbox(join(self.packagedir, 'setup.py')), False)
def testSandbox(self): scm = Mercurial() self.assertEqual(scm.is_valid_sandbox(self.packagedir), True)
def testSubdirOfSandbox(self): scm = Mercurial() self.assertEqual( scm.is_valid_sandbox(join(self.packagedir, 'testpackage')), True)
def testNotADir(self): scm = Mercurial() self.assertEqual(scm.is_valid_sandbox(join(self.packagedir, 'setup.py')), False)
def testSubdirOfSandbox(self): scm = Mercurial() self.assertEqual(scm.is_valid_sandbox(join(self.packagedir, 'testpackage')), True)