~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlms/test/test.py

  • Committer: Holger Rapp
  • Date: 2012-02-14 06:32:50 UTC
  • Revision ID: sirver@gmx.de-20120214063250-oaovpw7osjkl4bg1
Fixed a rare condition when we could receive a game ping from a game we know nothing about

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
        self.assertEqual(p1, ["CHAT", "bert", "hello <rt>there</rt>\nhow<rtdoyoudo", "private"])
417
417
 
418
418
# End: Test Chat  }}}
 
419
#
419
420
# Test Game Creation/Joining  {{{
420
421
class TestGameCreation(_Base, unittest.TestCase):
421
422
    def setUp(self):
636
637
            "otto", "build-17", "", "REGISTERED", "",
637
638
            "SirVer", "build-18", "", "SUPERUSER", ""
638
639
        ])
639
 
 
 
640
# End: Test Game Creation/Joining  }}}
 
641
# Test Game Starting  {{{
640
642
class TestGameStarting(_Base, unittest.TestCase):
641
643
    def setUp(self):
642
644
        _Base.setUp(self)
669
671
        p1, = self._mult_receive([1,2])
670
672
        self.assertEqual(p1, p2)
671
673
        self.assertEqual(p2, ["GAMES_UPDATE"])
672
 
 
 
674
# End: Game Starting  }}}
 
675
# Test Game Leaving  {{{
673
676
class TestGameLeaving(_Base, unittest.TestCase):
674
677
    def setUp(self):
675
678
        _Base.setUp(self)
728
731
            "otto", "build-17", "my cool game", "REGISTERED", "",
729
732
            "SirVer", "build-18", "", "SUPERUSER", ""
730
733
        ])
731
 
# End: Test Game Creation/Joining  }}}
 
734
# End: Game Leaving  }}}
732
735
 
733
736
 
734
737