'Test counter management with the resetCounter method.'

def test_counter(self):

    wrappedFactory = Server()
    f = TestLoggingFactory(wrappedFactory, 'test')
    self.assertEqual(f._counter, 0)
    f.buildProtocol(('1.2.3.4', 5678))
    self.assertEqual(f._counter, 1)
    f.openFile = None
    f.buildProtocol(('1.2.3.4', 5679))
    self.assertEqual(f._counter, 2)
    f.resetCounter()
    self.assertEqual(f._counter, 0)
