#! coding: utf-8

import subprocess
import nose.tools as nt
from tests import TestPortalAndino


class TestFileSizeLimit(TestPortalAndino.TestPortalAndino):

    @classmethod
    def setUpClass(cls):
        super(TestFileSizeLimit, cls).setUpClass()

    def test_nginx_configuration_uses_1024_MB_as_file_size_limit(self):
        size_line = subprocess.check_output('docker exec -it andino-nginx cat /etc/nginx/conf.d/default.conf | '
                                            'grep client_max_body_size', shell=True).strip()
        print subprocess.check_output('docker exec -it andino-nginx cat /etc/nginx/conf.d/default.conf',
                                      shell=True).strip()
        nt.assert_true('1024' in size_line)

#! coding: utf-8

import subprocess
import nose.tools as nt
from tests import TestPortalAndino


class TestFileSizeLimit(TestPortalAndino.TestPortalAndino):

    @classmethod
    def setUpClass(cls):
        super(TestFileSizeLimit, cls).setUpClass()

    def test_nginx_configuration_uses_1024_MB_as_file_size_limit(self):
        size_line = subprocess.check_output(
            'docker exec -it andino-nginx cat /etc/nginx/conf.d/default.conf | grep client_max_body_size', shell=True)
        nt.assert_true('1024' in size_line)

Revert "Hago un strip del output de subprocess"
Revert "Hago un strip del output de subprocess"

This reverts commit f5f21d78d87be641617a7cb920d0869975175e58.
