Removed old comments/code, better test coverage.

This commit is contained in:
Chris Church
2013-04-26 23:18:13 -04:00
parent ecf6be4335
commit 2a875411d0
5 changed files with 87 additions and 108 deletions

View File

@@ -243,7 +243,7 @@ class AcomInventoryTest(BaseCommandTest):
def test_with_invalid_inventory_id(self):
inventory_pks = set(map(lambda x: x.pk, self.inventories))
invalid_id = [x for x in xrange(9999) if x not in inventory_pks][0]
invalid_id = [x for x in xrange(1, 9999) if x not in inventory_pks][0]
os.environ['ACOM_INVENTORY_ID'] = str(invalid_id)
result, stdout, stderr = self.run_command('acom_inventory', list=True)
self.assertTrue(isinstance(result, CommandError))