def test_set_reset(self):

        # Setting the counter to a particular value
        expected_val = 1024
        MC.set(self.counter_name, expected_val)
        self.assertEqual(expected_val, MC.get(self.counter_name))

        # Reseting the counter to a particular value
        MC.reset(self.counter_name)
        self.assertEqual(0, MC.get(self.counter_name))

        # Deleting the counter from memcache and checking it's existence
        MC.put_to_datastore(self.counter_name, flush=True)
        self.assertTrue(MC.exist(self.counter_name))

        # Now permanently deleting the counter and checking it's existence
        MC.delete(self.counter_name)
        self.assertFalse(MC.exist(self.counter_name))
  def test_set_reset(self):

    # Setting the counter to a particular value
    expected_val = 1024
    MC.set(self.counter_name, expected_val)
    self.assertEqual(expected_val, MC.get(self.counter_name))

    # Reseting the counter to a particular value
    MC.reset(self.counter_name)
    self.assertEqual(0, MC.get(self.counter_name))

    # Deleting the counter from memcache and checking it's existence
    MC.put_to_datastore(self.counter_name, flush=True)
    self.assertTrue(MC.exist(self.counter_name))

    # Now permanently deleting the counter and checking it's existence
    MC.delete(self.counter_name)
    self.assertFalse(MC.exist(self.counter_name))