Ejemplo n.º 1
0
 def test_smoke_ancient(self):
     backup_argv = sys.argv
     sys.argv = ["python", "ancient_map", "-w", self.world]
     try:
         main()
     except Exception as e:
         raise e
     sys.argv = backup_argv
Ejemplo n.º 2
0
 def test_smoke_ancient(self):
         backup_argv = sys.argv
         sys.argv = ["python", "ancient_map", "-w", self.world]
         try:
             main()
         except Exception as e:
             raise e
         sys.argv = backup_argv
Ejemplo n.º 3
0
 def test_smoke_full(self):
     # the big smoke test, can we go through
     # everything without it exploding?
     backup_argv = sys.argv
     sys.argv = ["python", "--width", "16", "--height", "16", "-r", "--gs"]
     try:
         main()
     except Exception as e:
         raise e
Ejemplo n.º 4
0
 def test_smoke_info(self):
     backup_argv = sys.argv
     sys.argv = ["python", "info", self.world]
     try:
         main()
     except Exception as e:
         raise e
     # TODO: fill in the rest of the options and their possibilities
     sys.argv = backup_argv
Ejemplo n.º 5
0
 def test_smoke_plates(self):
         backup_argv = sys.argv
         sys.argv = ["python", "plates", "--width", "16",
                     "--height", "16", "--number-of-plates", "2"]
         try:
             main()
         except Exception as e:
             raise e
         sys.argv = backup_argv
Ejemplo n.º 6
0
 def test_smoke_plates(self):
         backup_argv = sys.argv
         sys.argv = ["python", "plates", "--width", "16",
                     "--height", "16", "--number-of-plates", "2"]
         try:
             main()
         except Exception as e:
             raise e
         sys.argv = backup_argv
Ejemplo n.º 7
0
 def test_smoke_info(self):
     backup_argv = sys.argv
     sys.argv = ["python", "info", self.world]
     try:
         main()
     except Exception as e:
         raise e
     # TODO: fill in the rest of the options and their possibilities
     sys.argv = backup_argv
Ejemplo n.º 8
0
 def test_warnings(self):
     backup_argv = sys.argv
     sys.argv = ["python", "--width", "16", "--height", "16",
                 "--temps", "1.1/.235/.406/.561/.634/-.1", "--humidity",
                 "1.1/.222/.493/.764/.927/.986/-.1"]
     try:
         main()
     except Exception as e:
         raise e
Ejemplo n.º 9
0
 def test_smoke_full(self):
     # the big smoke test, can we go through
     # everything without it exploding?
     backup_argv = sys.argv
     sys.argv = ["python", "--width", "16", "--height", "16",
                 "-r", "--gs"]
     try:
         main()
     except Exception as e:
         raise e
Ejemplo n.º 10
0
 def test_warnings(self):
     backup_argv = sys.argv
     sys.argv = [
         "python", "--width", "16", "--height", "16", "--temps",
         "1.1/.235/.406/.561/.634/-.1", "--humidity",
         "1.1/.222/.493/.764/.927/.986/-.1"
     ]
     try:
         main()
     except Exception as e:
         raise e
Ejemplo n.º 11
0
 def test_smoke_full(self):
     # the big smoke test, can we go through
     # everything without it exploding?
     backup_argv = sys.argv
     sys.argv = ["python", "--width", "16", "--height", "16",
                 "-r", "-v", "--gs", "--scatter", "--temps",
                 ".126/.235/.406/.561/.634/.876", "--humidity",
                 ".059/.222/.493/.764/.927/.986/.998"]
     try:
         main()
     except Exception as e:
         raise e
Ejemplo n.º 12
0
 def test_smoke_full(self):
     # the big smoke test, can we go through
     # everything without it exploding?
     backup_argv = sys.argv
     sys.argv = ["python", "--width", "16", "--height", "16",
                 "-r", "-v", "--gs", "--scatter", "--temps",
                 ".126/.235/.406/.561/.634/.876", "--humidity",
                 ".059/.222/.493/.764/.927/.986/.998", "-go", ".2",
                 "-gv", "1.25"]
     try:
         main()
     except Exception as e:
         raise e