def testMultiDeleteGets(self):
     field_range = FieldRange('fld_id').set_start(2, True)
     continuation_key = bytearray(5)
     self.multi_delete_request.set_table_name(table_name).set_key(
         self.key).set_continuation_key(continuation_key).set_range(
         field_range).set_max_write_kb(1024)
     self.assertEqual(self.multi_delete_request.get_table_name(),
                      table_name)
     self.assertEqual(self.multi_delete_request.get_key(), self.key)
     self.assertEqual(self.multi_delete_request.get_continuation_key(),
                      continuation_key)
     self.assertEqual(self.multi_delete_request.get_range(), field_range)
     self.assertEqual(self.multi_delete_request.get_max_write_kb(), 1024)
 def testFieldRangeDifferentStartEndType(self):
     fr = FieldRange('fld_id').set_start('abc', False).set_end(3, True)
     self.multi_delete_request.set_range(fr)
     self.assertRaises(IllegalArgumentException, self.handle.multi_delete,
                       self.multi_delete_request)
 def testFieldRangeNoStartAndEnd(self):
     fr = FieldRange('fld_id')
     self.multi_delete_request.set_range(fr)
     self.assertRaises(IllegalArgumentException, self.handle.multi_delete,
                       self.multi_delete_request)
 def testFieldRangeSetIllegalEnd(self):
     fr = FieldRange('fld_id')
     self.assertRaises(IllegalArgumentException, fr.set_end, None, False)
     self.assertRaises(IllegalArgumentException, fr.set_start, -1,
                       'IllegalIsInclusive')
 def testFieldRangeSetIllegalStart(self):
     fr = FieldRange('fld_id')
     self.assertRaises(IllegalArgumentException, fr.set_start, None, True)
     self.assertRaises(IllegalArgumentException, fr.set_start, 0,
                       'IllegalIsInclusive')