def test_unpack_command(self):
     cmd = ReceiveCopyOperatingParametersCommand()
     cmd.unpack(RECEIVE_COPY_OPERATING_PARAMETERS_CDB_DATA)
     self.assertEqual(cmd.operation_code, 0x84)
     self.assertEqual(cmd.service_action, 3)
     self.assertEqual(cmd.allocation_length, 520)
     self.assertEqual(cmd.control, 0)
 def test_pack_command(self):
     cmd = ReceiveCopyOperatingParametersCommand(allocation_length=520, control=0)
     self.assertEqual(cmd.pack(), RECEIVE_COPY_OPERATING_PARAMETERS_CDB_DATA)