def testOneHit(self): # increase the hit count for user user1 hitcount.hit("user1") # ensure that the hit count for user1 is just 1 self.assertEqual(b'1', hitcount.getHit("user1"))
def testOneHit(self): # Increase the hit count for user user1 hitcount.hit("user1") # Ensure that the hit count for user1 is just 1 self.assertEqual(b'1', hitcount.getHit("user1"))
def testOneHit(self): hitcount.hit("user1") self.assertEqual(b'1', hitcount.gethit("user1"))
def testThreeHits(self): hitcount.hit("user1") hitcount.hit("user1") hitcount.hit("user1") self.assertEqual(b'3', hitcount.gethit("user1"))
def testTWOHits(self): hitcount.hit("user1") hitcount.hit("user1") self.assertEqual(b'2', hitcount.gethit("user1"))
def testOneHit(self): hitcount.hit("user1") self.assertEqual(b'1',hitcount.getHit("user1"))