예제 #1
0
    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"))
예제 #2
0
 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"))