pacifica/pacifica-proxy

View on GitHub
tests/main_test.py

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Test the proxy main method."""
from unittest import TestCase
from pacifica.proxy.__main__ import main


class TestMain(TestCase):
    """Test some of the arguments to main."""

    def test_main_stop(self):
        """Test main with stop arguments."""
        self.assertEqual(main(['--stop-after-a-moment']), 0)