def test_importequipmentlicenses_nonexistent_file(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute('hwdoc_importequipmentlicenses') try: call_command('hwdoc_importequipmentlicenses') except CommandError: pass
def test_importequipment_nofile_specified(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute('hwdoc_importequipment') try: call_command('hwdoc_importequipment', verbosity=0) except CommandError: pass
def test_bmc_commands_bad_call(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute('hwdoc_startup') try: call_command('hwdoc_startup', verbosity=0) except CommandError: pass
def test_bmc_commands_no_result(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute('hwdoc_startup') try: call_command('hwdoc_startup', 'INEXISTENT_EQUIPMENT', verbosity=0) except CommandError: pass
def test_bmc_firmware_update_no_specified_file(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute('hwdoc_firmware_update') try: call_command('hwdoc_firmware_update', self.server2.serial, verbosity=0) except CommandError: pass
def test_importequipment_nonexistent_file(self): filename = 'test_importequiment.csv' if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute('hwdoc_importequipment') try: call_command('hwdoc_importequipment', filename, verbosity=0) except CommandError: pass
def test_bmc_pass_change_no_password(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute("hwdoc_pass_change") try: call_command("hwdoc_pass_change", self.server2.serial, change_username="******", verbosity=0) except CommandError: pass
def test_bmc_firmware_update_nonexistent_file(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute("hwdoc_firmware_update") try: call_command("hwdoc_firmware_update", self.server2.serial, firmware_location="firmware", verbosity=0) except CommandError: pass
def test_bmc_pass_change_no_password(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute('hwdoc_pass_change') try: call_command('hwdoc_pass_change', self.server2.serial, change_username='******', verbosity=0) except CommandError: pass
def test_bmc_pass_change_no_username(self): if DJANGO_VERSION[:2] < (1, 5): from compat import monkey_patch_command_execute monkey_patch_command_execute('hwdoc_pass_change') try: call_command('hwdoc_pass_change', self.server2.serial, newpass='******', verbosity=0) except CommandError: pass