Exemplo n.º 1
0
 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")))
Exemplo n.º 2
0
 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")))
Exemplo n.º 3
0
 def _getBEController(self, obe):
     return SSHBEController(obe)