Ejemplo n.º 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"))
Ejemplo n.º 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"))
Ejemplo n.º 3
0
 def testOneHit(self):
     hitcount.hit("user1")
     self.assertEqual(b'1', hitcount.gethit("user1"))
Ejemplo n.º 4
0
 def testThreeHits(self):
     hitcount.hit("user1")
     hitcount.hit("user1")
     hitcount.hit("user1")
     self.assertEqual(b'3', hitcount.gethit("user1"))
Ejemplo n.º 5
0
 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"))