Esempio n. 1
0
 def test_checks_create(self):
     self.assertRaises(CommandExecutionError, uptime.create,
                       'http://example.org')
     self.assertEqual(4321, uptime.create('http://example.com'))
     self.assertEqual(('http://localhost:5000/api/checks', ),
                      REQUEST_MOCK.args)
Esempio n. 2
0
 def test_checks_create(self):
     self.assertRaises(CommandExecutionError, uptime.create,
                       'http://example.org')
     self.assertEqual(4321, uptime.create('http://example.com'))
     self.assertEqual(('http://localhost:5000/api/checks',),
                      REQUEST_MOCK.args)