Merge branch 'vagrant-unstable'

This commit is contained in:
Luke Sneeringer
2014-06-19 14:54:16 -05:00
6 changed files with 67 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ import sys
import tempfile
import time
import urlparse
import unittest
# Django
from django.conf import settings
@@ -872,6 +873,9 @@ class InventoryImportTest(BaseCommandMixin, BaseLiveServerTest):
self.assertEqual(new_inv.total_groups, ngroups)
self.assertElapsedLessThan(30)
@unittest.skipIf(getattr(settings, 'LOCAL_DEVELOPMENT', False),
'Skip this test in local development environments, '
'which may vary widely on memory.')
def test_large_inventory_file(self):
new_inv = self.organizations[0].inventories.create(name='largeinv')
self.assertEqual(new_inv.hosts.count(), 0)