Пример #1
0
 def _makeFUT(self, *args, **kwargs):
     from autopush.diagnostic_cli import EndpointDiagnosticCLI
     return EndpointDiagnosticCLI(
         *args,
         resource=autopush.tests.boto_resource,
         use_files=False,
         **kwargs)
    def test_parser_tuple(self):
        from autopush.diagnostic_cli import EndpointDiagnosticCLI

        edc = EndpointDiagnosticCLI(("http://someendpoint", ),
                                    use_files=False,
                                    resource=autopush.tests.boto_resource)
        assert edc is not None
        assert edc._endpoint == "http://someendpoint"
Пример #3
0
 def _makeFUT(self, *args, **kwargs):
     from autopush.diagnostic_cli import EndpointDiagnosticCLI
     return EndpointDiagnosticCLI(*args, use_files=False, **kwargs)
Пример #4
0
    def test_parser_tuple(self):
        from autopush.diagnostic_cli import EndpointDiagnosticCLI

        edc = EndpointDiagnosticCLI(("http://someendpoint", ))
        assert edc is not None
        assert edc._endpoint == "http://someendpoint"