source: ogServer-Git/tests/units/test_0002_post_clients.py @ 1436d44

Last change on this file since 1436d44 was 72b6c26, checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago

#915: Remove duplicated test

This test is already performed in test_0001_get_clients.py

  • Property mode set to 100644
File size: 509 bytes
Line 
1import requests
2import unittest
3
4class TestPostClientsMethods(unittest.TestCase):
5
6    def setUp(self):
7        self.url = 'http://localhost:8888/clients'
8        self.headers = {'Authorization' : '07b3bfe728954619b58f0107ad73acc1'}
9        self.json = { 'clients' : [ '192.168.2.1', '192.168.2.2' ] }
10
11    def test_post(self):
12        returned = requests.post(self.url, headers=self.headers, json=self.json)
13        self.assertEqual(returned.status_code, 200)
14
15if __name__ == '__main__':
16    unittest.main()
Note: See TracBrowser for help on using the repository browser.