Did I find the right examples for you? yes no

All Samples(37)  |  Call(37)  |  Derive(0)  |  Import(0)
Fail if the two objects are unequal as determined by the '=='
operator.

src/p/y/pystat-0.2.4/pystat/tests/test_counter.py   pystat(Download)
    def test_add(self):
        self.counter.add()
        self.assertEqual(1, int(self.counter))
        self.counter.add()
        self.assertEqual(2, int(self.counter))
 
    def test_add_sample(self):
        self.counter.add(5)
        self.assertEqual(5, int(self.counter))
    def test_iadd(self):
        self.counter += 1
        self.assertEqual(1, int(self.counter))
 
    def test_count(self):
        self.counter.add()
        self.counter.add()
        self.assertEqual(2, len(self.counter))

src/p/y/pystat-0.2.4/pystat/tests/test_plain_counter.py   pystat(Download)
    def test_add(self):
        self.counter.add()
        self.assertEqual(1, len(self.counter))
        self.counter.add()
        self.assertEqual(2, len(self.counter))
 
    def test_serialization(self):
        self.counter.add()
        self.counter.add()
        self.assertEqual(2, len(self.counter))
        dump = dumps(self.counter)
        counter = loads(dump)
        self.assertEqual(2, len(counter))
 
    def test_union(self):
        c2.add()
        c3 = c1.union(c2)
        self.assertEqual(4, len(c3))
 
    def test_init(self):

src/p/y/pystat-0.2.4/pystat/tests/test_timer.py   pystat(Download)
    def test_add(self):
        self.timer.add(1.0)
        self.assertEqual(1, int(self.timer))
        self.timer.add(1.0)
        self.assertEqual(2, int(self.timer))
 
    def test_add_sample(self):
        self.timer.add(5)
        self.assertEqual(5, int(self.timer))
    def test_iadd(self):
        self.timer += 1
        self.assertEqual(1, int(self.timer))
 
    def test_count(self):
        self.timer.add(1.0)
        self.timer.add(1.0)
        self.assertEqual(2, len(self.timer))