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)
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)