コード例 #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")))
コード例 #2
0
ファイル: tests.py プロジェクト: aj-james/aj-luv-repo
 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")))
コード例 #3
0
 def _getBEController(self, obe):
     return SSHBEController(obe)