Exemplo n.º 1
0
Arquivo: testCLI.py Projeto: xmnr/atk
    def testSettingVersion(self):

        self.assertEqual(
            execute("--request", "--version", "HTTP/2.1"),
            (request(version="HTTP/2.1"), cli.SUCCESS)
        )
        self.assertEqual(
            execute("--response", "--version", "HTTP/2.1"),
            (response(version="HTTP/2.1"), cli.SUCCESS)
        )
Exemplo n.º 2
0
Arquivo: testCLI.py Projeto: xmnr/atk
    def testSettingMethod(self):

        self.assertEqual(
            execute("--method", "PROPFIND"),
            (request(method="PROPFIND"), cli.SUCCESS)
        )
Exemplo n.º 3
0
Arquivo: testCLI.py Projeto: xmnr/atk
    def testSettingHeader(self):

        self.assertEqual(
            execute("--request", "-h", "User-agent", "fn"),
            (request(headers=(("User-agent", "fn"), )), cli.SUCCESS)
        )
Exemplo n.º 4
0
Arquivo: testCLI.py Projeto: xmnr/atk
    def testSettingPath(self):

        self.assertEqual(
            execute("--path", "/login"),
            (request(path="/login"), cli.SUCCESS)
        )