def my_resvn_setup():
    """make sure we are all setup to test reservations"""
    initA.clear()
    initA.runTur()
    initB.clear()
    initB.runTur()
    initA.register()
    initB.register()
    initC.runTur()
 def testCanSeeRegOnNonRegistrant(self):
     resA = initA.register()
     self.assertEqual(resA, 0)
     res = initB.register()
     self.assertEqual(res, 0)
     registrantsC = initC.getRegistrants()
     self.assertEqual(len(registrantsC), 2)
     self.assertIn(initA.key, registrantsC)
     self.assertIn(initB.key, registrantsC)
 def testCanSeeRegOnSecondRegistrant(self):
     resA = initA.register()
     self.assertEqual(resA, 0)
     res = initB.register()
     self.assertEqual(res, 0)
     registrantsB = initB.getRegistrants()
     self.assertEqual(len(registrantsB), 2)
     self.assertIn(initA.key, registrantsB)
     self.assertIn(initB.key, registrantsB)
 def testCanSeeRegistrationOnFirstRegistrant(self):
     res = initA.register()
     self.assertEqual(res, 0)
     res = initB.register()
     self.assertEqual(res, 0)
     registrantsA = initA.getRegistrants()
     self.assertEqual(len(registrantsA), 2)
     self.assertIn(initA.key, registrantsA)
     self.assertIn(initB.key, registrantsA)
 def testCanRegisterInitB(self):
     resB = initB.register()
     self.assertEqual(resB, 0)
 def setUp(self):
     my_reg_setup()
     initA.register()
     initB.register()