Exemple #1
0
 def test_init(self):
     """Check creation of MakeWebService object"""
     m = MakeWebService('root', 'Test Service', git=False)
     self.assertEqual(m.service_name, 'Test Service')
     self.assertEqual(m.short_name, 'root')
     self.assertEqual(m.user, 'root')
     self.assertEqual(m.db, 'root')
 def test_run_svn_command(self):
     """Check MakeWebService._run_svn_command"""
     m = MakeWebService('root', 'Test Service')
     m._run_svn_command(['help'], cwd='/')
     self.assertRaises(OSError, m._run_svn_command, ['garbage'])
 def test_make_password(self):
     """Check MakeWebService._make_password method"""
     m = MakeWebService('root', 'x')
     for pwlen in (10, 20):
         pwd = m._make_password(pwlen)
         self.assertEqual(len(pwd), pwlen)
Exemple #4
0
 def test_make_password(self):
     """Check MakeWebService._make_password method"""
     m = MakeWebService('root', 'x', git=False)
     for pwlen in (10, 20):
         pwd = m._make_password(pwlen)
         self.assertEqual(len(pwd), pwlen)