def test_pathExists(self): obe = BuildEnvironment.objects.create(betype=BuildEnvironment.TYPE_SSH, address=self.test_address) sbc = SSHBEController(obe) self.assertTrue(sbc._pathexists("/")) self.assertFalse(sbc._pathexists("/.deadbeef")) self.assertTrue(sbc._pathexists(sbc._shellcmd("pwd")))
def test_pathExists(self): obe = BuildEnvironment.objects.create(betype = BuildEnvironment.TYPE_SSH, address= test_address) sbc = SSHBEController(obe) self.assertTrue(sbc._pathexists("/")) self.assertFalse(sbc._pathexists("/.deadbeef")) self.assertTrue(sbc._pathexists(sbc._shellcmd("pwd")))
def _getBEController(self, obe): return SSHBEController(obe)